Commit 2f83652e authored by Oriol Brufau's avatar Oriol Brufau Committed by Commit Bot

[css-pseudo] Allow 'white-space' in ::marker

The spec has added 'white-space' to the list of properties that apply to
::marker pseudo-elements.

Spec: https://drafts.csswg.org/css-pseudo-4/#marker-pseudo

BUG=457718

TEST=external/wpt/css/css-pseudo/parsing/marker-supported-properties.html

Change-Id: Iaf05bb568d0127b2aae4219715bb8839620101a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954384Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Oriol Brufau <obrufau@igalia.com>
Cr-Commit-Position: refs/heads/master@{#722420}
parent b34eb9d0
......@@ -1536,6 +1536,7 @@ static inline bool IsValidMarkerStyleProperty(CSSPropertyID id) {
case CSSPropertyID::kFontWeight:
case CSSPropertyID::kTextCombineUpright:
case CSSPropertyID::kUnicodeBidi:
case CSSPropertyID::kWhiteSpace:
return true;
// Not directly specified in spec, but variables should be supported nearly
......
......@@ -15,6 +15,7 @@ PASS Property font-variant-ligatures value 'historical-ligatures' computes to 'h
PASS Property font-variant-numeric value 'slashed-zero' computes to 'slashed-zero' in ::marker
FAIL Property font-variant-position value 'sub' computes to 'sub' in ::marker assert_true: font-variant-position doesn't seem to be supported in the computed style expected true got false
PASS Property font-weight value '900' computes to '900' in ::marker
PASS Property white-space value 'nowrap' computes to 'nowrap' in ::marker
PASS Property color value 'rgb(0, 100, 200)' computes to 'rgb(0, 100, 200)' in ::marker
PASS Property text-combine-upright value 'all' computes to 'all' in ::marker
PASS Property unicode-bidi value 'plaintext' computes to 'plaintext' in ::marker
......
......@@ -31,6 +31,9 @@ test_pseudo_computed_value("::marker", "font-variant-numeric", "slashed-zero");
test_pseudo_computed_value("::marker", "font-variant-position", "sub");
test_pseudo_computed_value("::marker", "font-weight", "900");
// ::marker supports `white-space`
test_pseudo_computed_value("::marker", "white-space", "nowrap");
// ::marker supports `color`
test_pseudo_computed_value("::marker", "color", "rgb(0, 100, 200)");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment