diff --git a/layout/style/res/ua.css b/layout/style/res/ua.css index 27e233a08515..d70112f34227 100644 --- a/layout/style/res/ua.css +++ b/layout/style/res/ua.css @@ -136,6 +136,7 @@ text-transform: none; unicode-bidi: isolate; font-variant-numeric: tabular-nums; + white-space: pre; } /* SVG documents don't always load this file but they do have links. diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index c723eed69449..4dd601bebcbf 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -8526,6 +8526,7 @@ var gCSSProperties = { type: CSS_TYPE_LONGHAND, applies_to_placeholder: true, applies_to_cue: true, + applies_to_marker: true, initial_values: ["normal"], other_values: [ "pre", diff --git a/servo/components/style/properties/data.py b/servo/components/style/properties/data.py index dd07ddece321..8a523ccb66f3 100644 --- a/servo/components/style/properties/data.py +++ b/servo/components/style/properties/data.py @@ -879,6 +879,7 @@ class PropertyRestrictions: def marker(data): return set( [ + "white-space", "color", "text-combine-upright", "text-transform", 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 index a3eb573933f2..2cbb8f57e0e9 100644 --- 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 @@ -1,7 +1,4 @@ [marker-supported-properties-in-animation.html] - [Transition of white-space in ::marker] - expected: FAIL - [Transition of font in ::marker] expected: FAIL @@ -14,9 +11,6 @@ [Transition of list-style in ::marker] expected: FAIL - [Animation of white-space in ::marker] - expected: FAIL - [Transition of tab-size 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 index ac476ed2454b..bff03991842f 100644 --- 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 @@ -5,9 +5,6 @@ [Property font value 'italic small-caps 900 expanded 25px / 50px Ahem' in ::marker] expected: FAIL - [Property white-space value 'nowrap' in ::marker] - expected: FAIL - [Property animation value '1s linear 2s infinite alternate forwards paused anim' in ::marker] expected: FAIL diff --git a/testing/web-platform/tests/css/css-lists/inline-list-marker-ref.html b/testing/web-platform/tests/css/css-lists/inline-list-marker-ref.html index e5a3c2e490ab..f1dbbdea3db1 100644 --- a/testing/web-platform/tests/css/css-lists/inline-list-marker-ref.html +++ b/testing/web-platform/tests/css/css-lists/inline-list-marker-ref.html @@ -7,6 +7,7 @@