tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8a253b5cf8a6b6d4c57340893a0cc84fea5306ee
parent 7f3b1bfeb924d3db10d047be394882a8e2eee110
Author: Oriol Brufau <obrufau@igalia.com>
Date:   Wed,  1 Oct 2025 14:10:41 +0000

Bug 1991824 - Allow hyphens property on ::marker. r=firefox-style-system-reviewers,emilio

It's an inheritable property that applies to text, so authors should be
able to set it on ::marker so that it inherits to and affects the text
contents of the marker.

https://drafts.csswg.org/css-text/#propdef-hyphens
https://drafts.csswg.org/css-lists/#marker-properties

Differential Revision: https://phabricator.services.mozilla.com/D266955

Diffstat:
Mlayout/style/test/property_database.js | 2++
Mservo/components/style/properties/data.py | 1+
Dtesting/web-platform/meta/css/css-pseudo/marker-hyphens.html.ini | 2--
Mtesting/web-platform/meta/css/css-pseudo/parsing/marker-supported-properties-in-animation.html.ini | 6------
Mtesting/web-platform/meta/css/css-pseudo/parsing/marker-supported-properties.html.ini | 3---
Mtesting/web-platform/tests/css/css-pseudo/marker-hyphens.html | 3+++
6 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js @@ -9048,6 +9048,7 @@ var gCSSProperties = { domProp: "hyphens", inherited: true, type: CSS_TYPE_LONGHAND, + applies_to_marker: true, initial_values: ["manual"], other_values: ["none", "auto"], invalid_values: [], @@ -10448,6 +10449,7 @@ var gCSSProperties = { domProp: "MozHyphens", inherited: true, type: CSS_TYPE_SHORTHAND_AND_LONGHAND, + applies_to_marker: true, alias_for: "hyphens", subproperties: ["hyphens"], }, diff --git a/servo/components/style/properties/data.py b/servo/components/style/properties/data.py @@ -1079,6 +1079,7 @@ class PropertyRestrictions: "color", "content", "direction", + "hyphens", "line-height", "text-combine-upright", "text-emphasis-color", diff --git a/testing/web-platform/meta/css/css-pseudo/marker-hyphens.html.ini b/testing/web-platform/meta/css/css-pseudo/marker-hyphens.html.ini @@ -1,2 +0,0 @@ -[marker-hyphens.html] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-pseudo/parsing/marker-supported-properties-in-animation.html.ini b/testing/web-platform/meta/css/css-pseudo/parsing/marker-supported-properties-in-animation.html.ini @@ -32,9 +32,6 @@ [Animation of overflow-wrap in ::marker] expected: FAIL - [Animation of hyphens in ::marker] - expected: FAIL - [Transition of text-decoration-skip-ink in ::marker] expected: FAIL @@ -47,9 +44,6 @@ [Animation of text-decoration-skip-ink in ::marker] expected: FAIL - [Transition of hyphens in ::marker] - expected: FAIL - [Transition of letter-spacing in ::marker] expected: FAIL diff --git a/testing/web-platform/meta/css/css-pseudo/parsing/marker-supported-properties.html.ini b/testing/web-platform/meta/css/css-pseudo/parsing/marker-supported-properties.html.ini @@ -11,9 +11,6 @@ [Property line-break value 'anywhere' in ::marker] expected: FAIL - [Property hyphens value 'none' in ::marker] - expected: FAIL - [Property word-spacing value '10px' in ::marker] expected: FAIL diff --git a/testing/web-platform/tests/css/css-pseudo/marker-hyphens.html b/testing/web-platform/tests/css/css-pseudo/marker-hyphens.html @@ -11,6 +11,9 @@ li { list-style-position: inside; width: 0; } +::marker { + white-space: normal; +} .hyphens-manual.explicit ::marker, .hyphens-manual.inherit { hyphens: manual;