[webkit-changes] [WebKit/WebKit] b3153e: Fix serialization of translate property to not str...
Tim Nguyen
noreply at github.com
Mon Sep 12 22:13:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b3153ed03adac0a53d84708f631768747043f40a
https://github.com/WebKit/WebKit/commit/b3153ed03adac0a53d84708f631768747043f40a
Author: Tim Nguyen <ntim at apple.com>
Date: 2022-09-12 (Mon, 12 Sep 2022)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/transform-valid-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/transform-valid.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html
M Source/WebCore/css/CSSComputedStyleDeclaration.cpp
M Source/WebCore/css/parser/CSSPropertyParser.cpp
Log Message:
-----------
Fix serialization of translate property to not strip 0%
https://bugs.webkit.org/show_bug.cgi?id=245107
<rdar://99848667>
Reviewed by Simon Fraser.
>From https://drafts.csswg.org/css-transforms-2/#individual-transforms:
> Note: The resolved value of the translate property is the computed value, and thus getComputedStyle() includes percentage values in its results.
Re-imported css/css-transforms/parsing tests from revision 514d8a8
Test: imported/w3c/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html
* LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/transform-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/transform-valid.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/parsing/translate-parsing-valid.html:
* Source/WebCore/css/CSSComputedStyleDeclaration.cpp:
(WebCore::computedTranslate):
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::consumeTranslate):
Canonical link: https://commits.webkit.org/254422@main
More information about the webkit-changes
mailing list