Skip to content
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

CSS <position> should never serialize to a single value #18043

Conversation

nt1m
Copy link
Member

@nt1m nt1m commented Sep 21, 2023

860ac0e

CSS <position> should never serialize to a single value
https://bugs.webkit.org/show_bug.cgi?id=258585
rdar://111750372

Reviewed by Oriol Brufau and Simon Fraser.

This was clarified in w3c/csswg-drafts#8996

It's ambiguous in some cases, especially when followed by length.

* LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style-expected.txt:
* LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style.html:
* LayoutTests/fast/css/background-position-serialize-expected.txt:
* LayoutTests/fast/css/background-position-serialize.html:
* LayoutTests/fast/masking/parsing-webkit-mask-expected.txt:
* LayoutTests/fast/masking/parsing-webkit-mask.html:
* LayoutTests/fast/masking/parsing-mask-expected.txt:
* LayoutTests/fast/masking/parsing-mask.html:
* LayoutTests/imported/w3c/web-platform-tests/css/cssom/serialize-values.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/parsing/mask-position-valid.html:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-anchor-parsing-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-parsing-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-position-parsing-valid-expected.txt:
* Source/WebCore/css/ShorthandSerializer.cpp:
(WebCore::ShorthandSerializer::serializeLayered const):
* Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumePosition):

Canonical link: https://commits.webkit.org/268291@main

c647e70

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🛠 gtk
⏳ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 🧪 gtk-wk2
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🧪 api-gtk
🛠 tv 🧪 mac-AS-debug-wk2
✅ 🛠 tv-sim ✅ 🧪 mac-wk2-stress
✅ 🛠 🧪 merge ✅ 🛠 watch
🛠 watch-sim

@nt1m nt1m self-assigned this Sep 21, 2023
@nt1m nt1m added the CSS Cascading Style Sheets implementation label Sep 21, 2023
@nt1m nt1m added merge-queue Applied to send a pull request to merge-queue and removed merge-queue Applied to send a pull request to merge-queue labels Sep 21, 2023
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Sep 21, 2023
@nt1m nt1m removed the merging-blocked Applied to prevent a change from being merged label Sep 22, 2023
@nt1m nt1m changed the title CSS <position> should never serialize to a single value [css-shapes] Don't serialize at 50% 50% in basic shapes Sep 22, 2023
@nt1m nt1m changed the title [css-shapes] Don't serialize at 50% 50% in basic shapes CSS <position> should never serialize to a single value Sep 22, 2023
@nt1m nt1m force-pushed the eng/CSS-position-should-never-serialize-to-a-single-value branch from 91bc7bf to c647e70 Compare September 22, 2023 00:27
@nt1m nt1m added the merge-queue Applied to send a pull request to merge-queue label Sep 22, 2023
https://bugs.webkit.org/show_bug.cgi?id=258585
rdar://111750372

Reviewed by Oriol Brufau and Simon Fraser.

This was clarified in w3c/csswg-drafts#8996

It's ambiguous in some cases, especially when followed by length.

* LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style-expected.txt:
* LayoutTests/fast/backgrounds/background-shorthand-with-backgroundSize-style.html:
* LayoutTests/fast/css/background-position-serialize-expected.txt:
* LayoutTests/fast/css/background-position-serialize.html:
* LayoutTests/fast/masking/parsing-webkit-mask-expected.txt:
* LayoutTests/fast/masking/parsing-webkit-mask.html:
* LayoutTests/fast/masking/parsing-mask-expected.txt:
* LayoutTests/fast/masking/parsing-mask.html:
* LayoutTests/imported/w3c/web-platform-tests/css/cssom/serialize-values.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/parsing/mask-position-valid.html:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-anchor-parsing-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-parsing-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-position-parsing-valid-expected.txt:
* Source/WebCore/css/ShorthandSerializer.cpp:
(WebCore::ShorthandSerializer::serializeLayered const):
* Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumePosition):

Canonical link: https://commits.webkit.org/268291@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/CSS-position-should-never-serialize-to-a-single-value branch from c647e70 to 860ac0e Compare September 22, 2023 01:25
@webkit-commit-queue webkit-commit-queue merged commit 860ac0e into WebKit:main Sep 22, 2023
@webkit-commit-queue
Copy link
Collaborator

Committed 268291@main (860ac0e): https://commits.webkit.org/268291@main

Reviewed commits have been landed. Closing PR #18043 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Sep 22, 2023
@nt1m nt1m deleted the eng/CSS-position-should-never-serialize-to-a-single-value branch September 22, 2023 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS Cascading Style Sheets implementation
Projects
None yet
6 participants