[wpt-sync] Sync PR 61468 - [counter-styles] Make extended counter styles inherit disclosure marker direction
Categories
(Core :: Layout: Generated Content, Lists, and Counters, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 61468 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/61468
Details from upstream follow.
Ananya Anand <t-anaanand@microsoft.com> wrote:
[counter-styles] Make extended counter styles inherit disclosure marker direction
disclosure-open/disclosure-closedpaint a triangle whose direction
follows the writing mode and direction (e.g. pointing left in RTL), but
this was not propagated throughsystem: extends. As a result, a custom
counter style extending one rendered as non-directional text and pointed
the wrong way in RTL and vertical writing modes.Add
CounterStyle::GetEffectiveSymbolMarkerName(), which follows the
extendschain to the predefined symbol marker a style resolves to,
plus anIsDisclosureMarker()helper for the check that was previously
repeated inline. Route the marker category, symbol painting, sizing,
margins and the\<summary>marker check through them. The new behavior
is scoped to the disclosure markers only; styles that extenddisc,
circleorsquarekeep rendering as text, per
https://drafts.csswg.org/css-counter-styles-3/#simple-symbolic.The exact rendering of these markers is UA-defined, so the external
tests userel=mismatchto stay UA-independent (Chromium paints the
markers as geometry rather than font glyphs):
disclosure-closed-extends-direction-001/-002/-003and
disclosure-open-vs-closed-001/-002, each with a-notref, cover
direction and open-vs-closed marker rendering acrosshorizontal-tb,
vertical-lr, andvertical-rl. Awpt_internalreftest,
disclosure-extends-painted-direction, pins Chromium's exact marker
geometry against a hardcoded reference.Bug: 40164946
Change-Id: I71d75c7283cf81ca43c46fad1f479f4cee9840d7
Reviewed-on: https://chromium-review.googlesource.com/8008803
WPT-Export-Revision: e90de4650774116b654d6968fc73dba01ea70c7c
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 1•4 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=c457c72483c58fe6b5c22b664623049fb06e7d9d
| Assignee | ||
Comment 2•4 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 58 tests and 16 subtests
Status Summary
Firefox
OK : 10
PASS: 5[GitHub] 109[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 154[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 8[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 11[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
PASS: 2
FAIL: 3
Safari
PASS: 5
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-counter-styles/counter-style-at-rule/descriptor-calc.html [wpt.fyi]:
FAIL - /css/css-counter-styles/counter-style-at-rule/fallbacks-in-shadow-dom.html [wpt.fyi]:
FAIL - /css/css-counter-styles/counter-style-at-rule/override-in-shadow-dom.html [wpt.fyi]:
FAIL - /css/css-counter-styles/counter-style-at-rule/prefix-suffix-syntax.html [wpt.fyi]
- @counter-style 'prefix: url("https://example.com/foo.png")' is valid:
FAIL - @counter-style 'suffix: url("https://example.com/foo.png")' is valid:
FAIL - @counter-style 'prefix: url(https://example.com/foo.png)' is valid:
FAIL - @counter-style 'suffix: url(https://example.com/foo.png)' is valid:
FAIL - @counter-style 'prefix: linear-gradient(yellow, blue)' is valid:
FAIL - @counter-style 'suffix: linear-gradient(yellow, blue)' is valid:
FAIL
- @counter-style 'prefix: url("https://example.com/foo.png")' is valid:
- /css/css-counter-styles/counter-style-at-rule/speak-as-syntax.html [wpt.fyi]
- @counter-style 'speak-as: spell-out' is valid:
FAIL
- @counter-style 'speak-as: spell-out' is valid:
- /css/css-counter-styles/counter-style-at-rule/symbols-syntax.html [wpt.fyi]
- @counter-style 'symbols: ident "X" url("foo.jpg")' is valid:
FAIL
- @counter-style 'symbols: ident "X" url("foo.jpg")' is valid:
Comment 4•4 months ago
|
||
| bugherder | ||
Comment 5•4 months ago
|
||
| bugherder | ||
Comment 6•4 months ago
|
||
| bugherder | ||
Description
•