| Summary: | REGRESSION (248115@main): `list-style` shorthand property doesn't work with `inside none` but with `none inside` | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Masataka Yakura <myakura.web> | ||||||||
| Component: | CSS | Assignee: | Tim Nguyen (:ntim) <ntim> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, graouts, karlcow, kkinnunen, koivisto, simon.fraser, webkit-bug-importer, zalan | ||||||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar, Regression | ||||||||
| Version: | Safari Technology Preview | ||||||||||
| Hardware: | Mac (Apple Silicon) | ||||||||||
| OS: | macOS 12 | ||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=237515 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Masataka Yakura
2022-08-16 07:07:52 PDT
Created attachment 461671 [details]
inspecting <ul> with `list-style: inside none` on Web Inspector
It looks STP considers the value `inside none` as valid. `CSS.supports('list-style: inside none')` also returns true in the Console. But the style doesn't apply :(
I found the WPT test for `list-style` shorthand https://wpt.fyi/results/css/CSS2/lists/list-style-020.xht which also fails. Oh. https://bugs.webkit.org/show_bug.cgi?id=237515 did the exact opposite of what the spec defines. 237515 – Parsing of list-style shorthand is incorrect https://bugs.webkit.org/show_bug.cgi?id=237515 Parsing of list-style shorthand is incorrect · WebKit/WebKit@6eece09 https://github.com/WebKit/WebKit/commit/6eece09a1c31e47489811edd003d1e36910e9fd3 Created attachment 461684 [details]
rendering in Safari, firefox, chrome
Using the test case of myakura-san in 3 browsers.
Safari 16.0
Firefox Nightly 105.0a1
Google Chrome Canary 106.0.5244.0
Only Safari fails the first test.
Pull request: https://github.com/WebKit/WebKit/pull/4060 Committed 254282@main (bf6ad141e2f3): <https://commits.webkit.org/254282@main> Reviewed commits have been landed. Closing PR #4060 and removing active labels. /app/webkit/Source/WebCore/css/parser/CSSPropertyParser.cpp:6402:19: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
6402 | if (noneCount > (!parsedImage + !parsedType))
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(In reply to Kimmo Kinnunen from comment #8) > /app/webkit/Source/WebCore/css/parser/CSSPropertyParser.cpp:6402:19: > warning: comparison of integer expressions of different signedness: > ‘unsigned int’ and ‘int’ [-Wsign-compare] > 6402 | if (noneCount > (!parsedImage + !parsedType)) > | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The latter was reported (and fixed) in https://bugs.webkit.org/show_bug.cgi?id=245060. |