-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PX:ignore invinsible elements (#1173)
- Loading branch information
1 parent
3f81e71
commit bbd7787
Showing
3 changed files
with
63 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/page-experience/test-data/checks/heroImages/ignore-hidden-images.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html ⚡> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>My AMP Page</title> | ||
<link rel="canonical" href="self.html" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> | ||
<script async src="https://cdn.ampproject.org/v0.js"></script> | ||
<script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script> | ||
|
||
<style amp-custom> | ||
.sizer { | ||
height: 100vh; | ||
} | ||
h1 { | ||
font-family: "Open Sans"; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<amp-sidebar id="sidebar" class="sample-sidebar" layout="nodisplay" side="left"> | ||
<amp-img width="200" height="200" layout="responsive" src="https://unsplash.it/400/400"> | ||
</amp-img> | ||
<h1>Hello AMPHTML World!</h1> | ||
</amp-sidebar> | ||
<button class="hamburger" on="tap:sidebar.toggle">Toggle</button> | ||
<div class="sizer"></div> | ||
<h1>Hello AMPHTML World!</h1> | ||
</body> | ||
</html> |
3 changes: 3 additions & 0 deletions
3
packages/page-experience/test-data/checks/heroImages/ignore-hidden-images.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"details": {} | ||
} |