Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoytenko committed Mar 6, 2020
1 parent 0defed9 commit 3a67516
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion extensions/amp-story/1.0/test/test-amp-story-grid-layer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
* Copyright 2020 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
</head>

<body>
<amp-story standalone>
<amp-story-page>
<amp-story standalone title="My Story" publisher="Me" publisher-logo-src="http://me.com/logo.png" poster-portrait-src="http://me.com/poster.jpg">
<amp-story-page id="cover">
<amp-story-grid-layer aspect-ratio="a:b" template="vertical">
</amp-story-grid-layer>
</amp-story-page>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ FAIL
| </head>
|
| <body>
| <amp-story standalone>
| <amp-story-page>
| <amp-story standalone title="My Story" publisher="Me" publisher-logo-src="http://me.com/logo.png" poster-portrait-src="http://me.com/poster.jpg">
| <amp-story-page id="cover">
| <amp-story-grid-layer aspect-ratio="a:b" template="vertical">
>> ^~~~~~~~~
amp-story/1.0/test/validator-amp-story-grid-layer-error.html:35:6 The attribute 'aspec-ratio' in tag 'amp-story-grid-layer' is set to the invalid value 'a:b'. (see https://amp.dev/documentation/components/amp-story)
>> ^~~~~~~~~
amp-story/1.0/test/validator-amp-story-grid-layer-error.html:34:8 The attribute 'aspect-ratio' in tag 'amp-story-grid-layer' is set to the invalid value 'a:b'.
| </amp-story-grid-layer>
| </amp-story-page>
| </amp-story>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
</head>

<body>
<amp-story standalone>
<amp-story-page>
<amp-story standalone title="My Story" publisher="Me" publisher-logo-src="http://me.com/logo.png" poster-portrait-src="http://me.com/poster.jpg">
<amp-story-page id="cover">
<amp-story-grid-layer aspect-ratio="9:16" template="vertical">
</amp-story-grid-layer>
</amp-story-page>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ PASS
| </head>
|
| <body>
| <amp-story standalone>
| <amp-story-page>
| <amp-story standalone title="My Story" publisher="Me" publisher-logo-src="http://me.com/logo.png" poster-portrait-src="http://me.com/poster.jpg">
| <amp-story-page id="cover">
| <amp-story-grid-layer aspect-ratio="9:16" template="vertical">
| </amp-story-grid-layer>
| </amp-story-page>
Expand Down
4 changes: 2 additions & 2 deletions extensions/amp-story/amp-story-grid-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ Example:
```html
<amp-story-grid-layer aspect-ratio="9:16" template="vertical">
<div style="width: 10%; height: 10%; font-size: 2em;">
This block will be in 9:16 aspect ratio and font size will be set at the
20% of the layer's height.
This block will be in 9:16 aspect ratio and font size will be set at the 20%
of the layer's height.
</div>
</amp-story-grid-layer>
```
Expand Down

0 comments on commit 3a67516

Please sign in to comment.