-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validation rules for amp-fit-text:1.0 on websites #33464
Conversation
Hey @ampproject/wg-caching! These files were changed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing the first one for Bento.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validator changes LGTM, thanks!
version: "0.1" | ||
version: "1.0" | ||
version: "latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes
requires_usage: EXEMPTED
deprecated_allow_duplicates: true
for the existing cases of 0.1 and latest on AMP
(in websites). This could cause errors on existing pages. If we can split up the tag_specs, it should be by version: one tag spec for 1.0
with the new requirements, and one for 0.1
and latest
keeping the old leniency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this change remove those specifications? I don't see them previously here, are they default values that get modified somehow?
Edit: NVM, I see it wasn't diffed since it's lower down inside the ads block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @twifkak, PTAL
This PR should not be merged until this thread is resolved. |
ae294e0
to
9155974
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay!
* Allow websites format to import amp-fit-text:1.0 * Add validator test file for 1.0 * 2018 -> 2021 * Add unique spec_name for ad format * Update amp-fit-text validations according to ampproject#33478
* cl/369984001 Revision bump for ampproject#33464 * cl/370113162 Revision bump for ampproject#33611
Note:
bento-fit-text
experiment is still active, so this PR does not "launch" the component, only widens the pool for experimental usage and feedback to include valid AMP documents on the web.Open question:
min-font-size
/max-font-size
attributes withamp-bind
. Is it possible to allow[min-font-size]
and[max-font-size]
foramp-fit-text
exclusively on documents where1.0
is used? cc / @ampproject/wg-cachingPartial for #28281. cc/ @nainar @dvoytenko