-
Notifications
You must be signed in to change notification settings - Fork 707
[css-align] Fix order of unsafe
/safe
keyword wrt alignment keyword?
#1001
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
Comments
unsafe
/safe
keyword wrt alignment keywordunsafe
/safe
keyword wrt alignment keyword?
Proposal: require safe/unsafe to be first, before the alignment keyword. |
Resolved to accept proposal: https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html |
I've implemented this change for both WebKit and Blink. https://bugs.chromium.org/p/chromium/issues/detail?id=802098 |
Now that the issue [1] about the syntax ambiguity has bee resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da
Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da
Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da
Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da Reviewed-on: https://chromium-review.googlesource.com/1013710 Commit-Queue: Javier Fernandez <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Reviewed-by: Manuel Rego Casasnovas <[email protected]> Cr-Commit-Position: refs/heads/master@{#552293}
Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da Reviewed-on: https://chromium-review.googlesource.com/1013710 Commit-Queue: Javier Fernandez <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Reviewed-by: Manuel Rego Casasnovas <[email protected]> Cr-Commit-Position: refs/heads/master@{#552293}
Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da Reviewed-on: https://chromium-review.googlesource.com/1013710 Commit-Queue: Javier Fernandez <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Reviewed-by: Manuel Rego Casasnovas <[email protected]> Cr-Commit-Position: refs/heads/master@{#552293}
https://bugs.webkit.org/show_bug.cgi?id=184812 Reviewed by Antti Koivisto. LayoutTests/imported/w3c: Imported new Web Platform Tests from the css-align test suite. Additionally, updated the ones we already have to verify the new shorthand syntax is correct. * resources/import-expectations.json: * web-platform-tests/css/css-align/OWNERS: Added. * web-platform-tests/css/css-align/content-distribution/place-content-shorthand-001.html: * web-platform-tests/css/css-align/content-distribution/place-content-shorthand-002.html: * web-platform-tests/css/css-align/content-distribution/place-content-shorthand-004-expected.txt: * web-platform-tests/css/css-align/content-distribution/place-content-shorthand-004.html: * web-platform-tests/css/css-align/default-alignment/parse-justify-items-001.html: * web-platform-tests/css/css-align/default-alignment/parse-justify-items-003.html: * web-platform-tests/css/css-align/default-alignment/place-items-shorthand-001.html: * web-platform-tests/css/css-align/default-alignment/place-items-shorthand-002.html: * web-platform-tests/css/css-align/default-alignment/place-items-shorthand-004-expected.txt: * web-platform-tests/css/css-align/default-alignment/place-items-shorthand-004.html: * web-platform-tests/css/css-align/default-alignment/shorthand-serialization-001-expected.txt: Added. * web-platform-tests/css/css-align/default-alignment/shorthand-serialization-001.html: Added. * web-platform-tests/css/css-align/default-alignment/w3c-import.log: * web-platform-tests/css/css-align/gaps/column-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/column-gap-parsing-001.html: * web-platform-tests/css/css-align/gaps/gap-normal-computed-001-expected.txt: Added. * web-platform-tests/css/css-align/gaps/gap-normal-computed-001.html: Added. * web-platform-tests/css/css-align/gaps/gap-normal-used-001-expected.xht: Added. * web-platform-tests/css/css-align/gaps/gap-normal-used-001.html: Added. * web-platform-tests/css/css-align/gaps/gap-normal-used-002-expected.xht: Added. * web-platform-tests/css/css-align/gaps/gap-normal-used-002.html: Added. * web-platform-tests/css/css-align/gaps/gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/gap-parsing-001.html: * web-platform-tests/css/css-align/gaps/grid-column-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-column-gap-parsing-001.html: * web-platform-tests/css/css-align/gaps/grid-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-gap-parsing-001.html: * web-platform-tests/css/css-align/gaps/grid-row-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/grid-row-gap-parsing-001.html: * web-platform-tests/css/css-align/gaps/row-gap-parsing-001-expected.txt: * web-platform-tests/css/css-align/gaps/row-gap-parsing-001.html: * web-platform-tests/css/css-align/gaps/w3c-import.log: * web-platform-tests/css/css-align/resources/alignment-parsing-utils.js: * web-platform-tests/css/css-align/self-alignment/place-self-shorthand-001.html: * web-platform-tests/css/css-align/self-alignment/place-self-shorthand-002.html: * web-platform-tests/css/css-align/self-alignment/place-self-shorthand-004-expected.txt: * web-platform-tests/css/css-align/self-alignment/place-self-shorthand-004.html: * web-platform-tests/css/css-align/w3c-import.log: Added. Source/WebCore: Now that the issue [1] about the syntax ambiguity has been resolved we don't need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Tests: imported/w3c/web-platform-tests/css/css-align/default-alignment/shorthand-serialization-001.html imported/w3c/web-platform-tests/css/css-align/gaps/gap-normal-computed-001.html imported/w3c/web-platform-tests/css/css-align/gaps/gap-normal-used-001.html imported/w3c/web-platform-tests/css/css-align/gaps/gap-normal-used-002.html * css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::consumePlaceContentShorthand): Using the justify-content and align-content parsing logic to parse the shorthand. (WebCore::CSSPropertyParser::consumePlaceItemsShorthand): Using the justify-items and align-items parsing logic to parse the shorthand. (WebCore::CSSPropertyParser::consumePlaceSelfShorthand): Using the justify-self and align-self parsing logic to parse the shorthand. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@230848 268f45cc-cd09-0410-ab3c-d52691b4dbfc
…ent shorthands, a=testonly Automatic update from web-platform-tests[css-align] Simple syntax for the Alignment shorthands Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da Reviewed-on: https://chromium-review.googlesource.com/1013710 Commit-Queue: Javier Fernandez <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Reviewed-by: Manuel Rego Casasnovas <[email protected]> Cr-Commit-Position: refs/heads/master@{#552293} -- wpt-commits: 4736f3fac17173f5e72c307ae586816169873fde wpt-pr: 10502
…ent shorthands, a=testonly Automatic update from web-platform-tests[css-align] Simple syntax for the Alignment shorthands Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da Reviewed-on: https://chromium-review.googlesource.com/1013710 Commit-Queue: Javier Fernandez <jfernandezigalia.com> Reviewed-by: Rune Lillesveen <futharkchromium.org> Reviewed-by: Manuel Rego Casasnovas <regoigalia.com> Cr-Commit-Position: refs/heads/master{#552293} -- wpt-commits: 4736f3fac17173f5e72c307ae586816169873fde wpt-pr: 10502 UltraBlame original commit: fba98c6ad8e53df53c2c92fc8daa5dc15f8935de
…ent shorthands, a=testonly Automatic update from web-platform-tests[css-align] Simple syntax for the Alignment shorthands Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da Reviewed-on: https://chromium-review.googlesource.com/1013710 Commit-Queue: Javier Fernandez <jfernandezigalia.com> Reviewed-by: Rune Lillesveen <futharkchromium.org> Reviewed-by: Manuel Rego Casasnovas <regoigalia.com> Cr-Commit-Position: refs/heads/master{#552293} -- wpt-commits: 4736f3fac17173f5e72c307ae586816169873fde wpt-pr: 10502 UltraBlame original commit: fba98c6ad8e53df53c2c92fc8daa5dc15f8935de
…ent shorthands, a=testonly Automatic update from web-platform-tests[css-align] Simple syntax for the Alignment shorthands Now that the issue [1] about the syntax ambiguity has been resolved we don´t need to use the custom syntax anymore. The Alignment shorthands use now the simple syntax, defined based on the longhands' syntax. Since we allow all the values valid for each longhand, we'll update in this CL the corresponding web platform tests. Additionally, this CL updates also the shorthand serialization tests [2], which didn't consider the new value 'legacy' for justify-items (and place-items) due to the bug [3] Firefox still has pending to be fixed. [1] w3c/csswg-drafts#1001 [2] css/css-align/default-alignment/shorthand-serialization-001.html [3] https://bugzilla.mozilla.org/show_bug.cgi?id=1363875 Bug: 832503, 829806 Change-Id: I53f803b384cc55b0b38292540262e54f803586da Reviewed-on: https://chromium-review.googlesource.com/1013710 Commit-Queue: Javier Fernandez <jfernandezigalia.com> Reviewed-by: Rune Lillesveen <futharkchromium.org> Reviewed-by: Manuel Rego Casasnovas <regoigalia.com> Cr-Commit-Position: refs/heads/master{#552293} -- wpt-commits: 4736f3fac17173f5e72c307ae586816169873fde wpt-pr: 10502 UltraBlame original commit: fba98c6ad8e53df53c2c92fc8daa5dc15f8935de
Currently
align-self
andjustify-self
are defined to allow[ <overflow-position>? && <content-position> ]
. That these keywords allow reordering makes parsing ambiguous in the shorthand, so they are disallowed from the shorthand. However, we could fix the order of the keywords, and that would make them unambiguous in the shorthand. It would, however, violate the "allow reordering unless unambiguous" principle for the longhands.The text was updated successfully, but these errors were encountered: