Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ab6e87bdf57f58aaef6a3eda1f7f7e02557230b4
https://github.com/WebKit/WebKit/commit/ab6e87bdf57f58aaef6a3eda1f7f7e02557230b4
Author: Sam Weinig <[email protected]>
Date: 2025-07-31 (Thu, 31 Jul 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-computed-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-computed.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-valid-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-valid.html
M Source/WebCore/css/CSSProperties.json
M Source/WebCore/css/StyleProperties.cpp
M Source/WebCore/css/parser/CSSParserFastPaths.cpp
Log Message:
-----------
Update handling of opacity values to match latest spec resolution
https://bugs.webkit.org/show_bug.cgi?id=296725
Reviewed by Darin Adler.
Updates the parsing and resolution of opacity values to match latest spec
resolution in w3c/csswg-drafts#10426
Opacity values now parse using the `consumePercentageDividedBy100OrNumber`
rules, meaning that percentage tokens get converted to numbers at parse
time, but calc() functions are not converted until style building. This
means updating both the CSSProperties.json grammars and the fast path.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-computed-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-computed.html:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-valid-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/opacity-valid.html:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/StyleProperties.cpp:
* Source/WebCore/css/parser/CSSParserFastPaths.cpp:
Canonical link: https://commits.webkit.org/298099@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes