[webkit-changes] [WebKit/WebKit] bf6ad1: REGRESSION (248115 at main): `list-style` shorthand p...
Tim Nguyen
noreply at github.com
Thu Sep 8 13:11:50 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bf6ad141e2f3b51243013f01f5d4c30ddaeda907
https://github.com/WebKit/WebKit/commit/bf6ad141e2f3b51243013f01f5d4c30ddaeda907
Author: Tim Nguyen <ntim at apple.com>
Date: 2022-09-08 (Thu, 08 Sep 2022)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-computed-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-computed.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-valid-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-valid.html
M LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-valid-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-valid.html
M Source/WebCore/css/parser/CSSPropertyParser.cpp
M Source/WebCore/css/parser/CSSPropertyParser.h
Log Message:
-----------
REGRESSION (248115 at main): `list-style` shorthand property doesn't work with `inside none` but with `none inside`
https://bugs.webkit.org/show_bug.cgi?id=243991
<rdar://98748112>
Reviewed by Cameron McCormack.
none can be either list-style-type or list-style-image, and longhands can be in any order. We need to distinguish them when parsing.
Also, this fixes the bug where `none garbage` was valid, when it is actually invalid.
* LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-computed.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-valid.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-valid.html:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::consumeListStyleShorthand):
(WebCore::CSSPropertyParser::parseShorthand):
* Source/WebCore/css/parser/CSSPropertyParser.h:
Canonical link: https://commits.webkit.org/254282@main
More information about the webkit-changes
mailing list