Update amphtml validator spec to v1907301630320#3003
Merged
swissspidy merged 4 commits intodevelopfrom Aug 12, 2019
Merged
Conversation
… defined in block class name
westonruter
commented
Aug 10, 2019
westonruter
added a commit
that referenced
this pull request
Aug 12, 2019
…p-bind-syntax * 'develop' of github.com:ampproject/amp-wp: RTLCSS all the things (#2977) Fix AMP Story editor compatibility with code editor (#3007) Update dependency core-js to v3.2.1 (#3011) Update amphtml validator spec to v1907301630320 (#3003) Improve handling of unlisted Vimeo videos (#2986) Always hide AMP admin menu item and compatibility tool menu ite… (#3005) Update dependency dom-scroll-into-view to v2.0.1 (#3008) Hide tooltips that should be hidden (#2988)
5 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously: #2816.
./bin/amphtml-update.shUpdate spec generator as needed based on spec format changes(see Add support for mandatory_oneof and mandatory_anyof attribute constraints #938)Modify validating sanitizer based on changes to spec, if needed(see Add support for mandatory_oneof and mandatory_anyof attribute constraints #938)Todos specific to this update:
responsivelayout foramp-soundcloud.AMP_Block_Sanitizerremoves classes likewp-embed-aspect-16-9, have it push the width and height onto the child element if it haslayout=responsive.Changelog
amp-adwithtype=customallow-blocked-end-dateattribute toamp-date-picker.templateattribute fromamp-embed.tabindexattribute regex constraint (as integer) foramp-iframe.amp-soundcloud. See Improve Soundcloud embed: support playlists, preserve visual/height params, include fallback content #2722 which now needs revisiting to implementresponsivelayout. See below.amp-script:sandboxattribute.uniqueconstraint foramp-script, so you can now use multiple scripts on a page.scriptattribute which contains the ID for ascript[type=text/plain]on the page containing the JS to run, except this is temporarily disabled: https://github.com/ampproject/amphtml/blob/1907301630320/extensions/amp-script/validator-amp-script.protoascii#L27-L56mandatoryconstraint forsrcattribute, since thescriptcan soon be defined inline via thescriptattribute.positionattribute (value being eitherlandscape-half-leftorlandscape-half-right) toamp-story-grid-layer. See Support for landscape orientation #2409.poool-access-contentandpoool-access-previewattributes to thesectionelement.SoundCloud Embed Layout
This is revisiting #2722 since
amp-soundcloudnow supportslayout=responsiveper ampproject/amphtml#23144.Before
Only
layout=fixed-heightwas supported, resulting in squished-looking embeds:After
Now with
layout=responsive, the embed looks identical to the non-AMP version, including the preservation of the aspect ratio defined by the block class name:Details
( PREV_VERSION=1907022322580; THIS_VERSION=1907301630320; git diff $PREV_VERSION...$THIS_VERSION -- $( git ls-files $THIS_VERSION -- . | grep '.protoascii' ) )Compare 1907022322580...1907301630320