commit e78e66765016cef78a09d25db9351b8375d7e928 parent 780b4fb75fdf5449f6a207c4efd92e90b6c4b7e5 Author: Oriol Brufau <obrufau@igalia.com> Date: Wed, 1 Oct 2025 09:01:18 +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:
6 files changed, 5 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: [], 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;