Closed Bug 2056751 Opened 4 months ago Closed 4 months ago

[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)

task

Tracking

()

RESOLVED FIXED
155 Branch
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-closed paint a triangle whose direction
follows the writing mode and direction (e.g. pointing left in RTL), but
this was not propagated through system: 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
extends chain to the predefined symbol marker a style resolves to,
plus an IsDisclosureMarker() 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 extend disc,
circle or square keep 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 use rel=mismatch to stay UA-independent (Chromium paints the
markers as geometry rather than font glyphs):
disclosure-closed-extends-direction-001/-002/-003 and
disclosure-open-vs-closed-001/-002, each with a -notref, cover
direction and open-vs-closed marker rendering across horizontal-tb,
vertical-lr, and vertical-rl. A wpt_internal reftest,
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

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core

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

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f9c35ac6e76c https://hg.mozilla.org/integration/autoland/rev/ca1e05b73e19 [wpt PR 61468] - [counter-styles] Make extended counter styles inherit disclosure marker direction, a=testonly
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.