Skip to content

Commit

Permalink
[amp-story] ❄️ Fix visual diff flake (#33395)
Browse files Browse the repository at this point in the history
* fix visual diff

* grid layer

* reset grid layer templates
  • Loading branch information
Enriqe committed Mar 22, 2021
1 parent 446c51d commit 98e5e87
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions examples/visual-tests/amp-story/amp-story-bot-rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-story" src="https://cdn.ampproject.org/v0/amp-story-1.0.js"></script>
<script async custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js"></script>
<link href='https://fonts.googleapis.com/css?family=Georgia|Open+Sans|Roboto' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet">
<title>Landscape story</title>
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script>
<title>Bot rendering</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link rel="canonical" href="index.html">
<link rel="canonical" href="amp-story-bot-rendering.html">
<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>
<style amp-custom>
body {
Expand Down Expand Up @@ -68,7 +67,7 @@
<amp-story-grid-layer template="fill">
<amp-img layout="fill" src="./img/cat2.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="center">
<amp-story-grid-layer template="vertical">
<p>
<span data-text-background-color="crimson">i can fit in that box but inspect anything brought into the house wack the mini furry mouse intently stare at the same spot. Flee in terror at cucumber discovered on floor shake treat bag</span>
</p>
Expand All @@ -80,7 +79,7 @@
<amp-story-grid-layer template="fill">
<amp-img layout="fill" src="./img/cat2.jpg"></amp-img>
</amp-story-grid-layer>
<amp-story-grid-layer template="center">
<amp-story-grid-layer template="vertical">
<p>
<span data-text-background-color="crimson">i can fit in that box but inspect anything brought into the house wack the mini furry mouse intently stare at the same spot. Flee in terror at cucumber discovered on floor shake treat bag</span>
</p>
Expand Down

0 comments on commit 98e5e87

Please sign in to comment.