[webkit-changes] [WebKit/WebKit] 860ac0: CSS <position> should never serialize to a single ...

Tim Nguyen noreply at github.com
Thu Sep 21 18:26:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 860ac0eb3e1489df131094b3e8d94311a3c987bd
      https://github.com/WebKit/WebKit/commit/860ac0eb3e1489df131094b3e8d94311a3c987bd
  Author: Tim Nguyen <ntim at apple.com>
  Date:   2023-09-21 (Thu, 21 Sep 2023)

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

  Log Message:
  -----------
  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 https://github.com/w3c/csswg-drafts/issues/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




More information about the webkit-changes mailing list