Truly independent web browser
LibWeb: Support text-emphasis-position values
Andreas Kling5dc0e83e45ed
diff --git a/Libraries/LibWeb/CSS/Keywords.json b/Libraries/LibWeb/CSS/Keywords.jsonindex b79379ae7da..72219a17754 100644--- a/Libraries/LibWeb/CSS/Keywords.json+++ b/Libraries/LibWeb/CSS/Keywords.json@@ -535,6 +535,7 @@"oromo","outset","outside",+ "over","overlay","overline","p3",diff --git a/Libraries/LibWeb/CSS/Properties.json b/Libraries/LibWeb/CSS/Properties.jsonindex 65e8a6262d1..075c338f2b4 100644--- a/Libraries/LibWeb/CSS/Properties.json+++ b/Libraries/LibWeb/CSS/Properties.json@@ -5272,6 +5272,19 @@],"percentages-resolve-to": "length"},+ "text-emphasis-position": {+ "__comment": "FIXME: Use this position when text emphasis rendering is implemented.",+ "animation-type": "discrete",+ "inherited": true,+ "initial": "over right",+ "requires-computation": "non-inherited-value",+ "valid-identifiers": [+ "over",+ "under",+ "left",+ "right"+ ]+ },"text-indent": {"style-group": "InheritedTextValues","animation-type": "by-computed-value",diff --git a/Libraries/LibWeb/CSS/PseudoElementPropertyGroups.txt b/Libraries/LibWeb/CSS/PseudoElementPropertyGroups.txtindex 0ff1e04549e..3b2feb35946 100644--- a/Libraries/LibWeb/CSS/PseudoElementPropertyGroups.txt+++ b/Libraries/LibWeb/CSS/PseudoElementPropertyGroups.txt@@ -176,6 +176,7 @@ text-decoration-linetext-decoration-skip-inktext-decoration-styletext-decoration-thickness+text-emphasis-positiontext-shadowtext-underline-offsettext-underline-positiondiff --git a/Libraries/LibWeb/Rust/src/css/parser/value_parser.rs b/Libraries/LibWeb/Rust/src/css/parser/value_parser.rsindex 188a2791fde..ae4a0432798 100644--- a/Libraries/LibWeb/Rust/src/css/parser/value_parser.rs+++ b/Libraries/LibWeb/Rust/src/css/parser/value_parser.rs@@ -273,6 +273,7 @@ fn property_uses_special_keyword_parser(property: u16) -> bool {| property_id::ROTATE| property_id::SCALE| property_id::TEXT_DECORATION_LINE+ | property_id::TEXT_EMPHASIS_POSITION| property_id::TEXT_INDENT| property_id::TEXT_SHADOW| property_id::TEXT_UNDERLINE_POSITION@@ -1930,6 +1931,37 @@ fn parse_text_indent_property(context: &ParseContext, property: u16, values: &[C}))}+// https://drafts.csswg.org/css-text-decor-4/#text-emphasis-position-property+// [ over | under ] && [ right | left ]?+fn parse_text_emphasis_position_property(values: &[ComponentValue]) -> ParseOutcome {+ let Some(keywords) = keyword_sequence(values) else {+ return ParseOutcome::Invalid;+ };+ let mut horizontal = None;+ let mut vertical = None;+ for keyword in keywords {+ match keyword {+ keyword::OVER | keyword::UNDER if horizontal.is_none() => horizontal = Some(keyword),+ keyword::LEFT | keyword::RIGHT if vertical.is_none() => vertical = Some(keyword),+ _ => return ParseOutcome::Invalid,+ }+ }+ let Some(horizontal) = horizontal else {+ return ParseOutcome::Invalid;+ };+ // If [ right | left ] is omitted, it defaults to right.+ let horizontal = StyleValueData::Keyword { keyword: horizontal };+ let position = match vertical {+ Some(vertical) => value_list(+ vec![horizontal, StyleValueData::Keyword { keyword: vertical }],+ 0,+ false,+ ),+ None => horizontal,+ };+ ParseOutcome::Parsed(shared_style_value(position))+}+fn parse_text_underline_position_property(values: &[ComponentValue]) -> ParseOutcome {let Some(keywords) = keyword_sequence(values) else {return ParseOutcome::Invalid;@@ -6084,6 +6116,9 @@ fn parse_css_value_after_substitution_scan(if property_id == property_id::TEXT_INDENT {return parse_text_indent_property(context, property_id, values);}+ if property_id == property_id::TEXT_EMPHASIS_POSITION {+ return parse_text_emphasis_position_property(values);+ }if property_id == property_id::TEXT_UNDERLINE_POSITION {return parse_text_underline_position_property(values);}diff --git a/Libraries/LibWeb/Rust/src/css/style_compute.rs b/Libraries/LibWeb/Rust/src/css/style_compute.rsindex 2a1a53ec939..4696742b610 100644--- a/Libraries/LibWeb/Rust/src/css/style_compute.rs+++ b/Libraries/LibWeb/Rust/src/css/style_compute.rs@@ -4322,6 +4322,18 @@ pub(crate) unsafe fn drive_property_computation(NativeValue::Unsupported}}+ // INTEROP: Preserve explicit right in declarations, but omit it from the computed value, as in+ // Chromium and WebKit.+ (_, prop::TEXT_EMPHASIS_POSITION) => {+ if let StyleValueData::ValueList { values, .. } = value_data+ && let [horizontal, vertical] = values.as_slice()+ && matches!(vertical.data(), StyleValueData::Keyword { keyword: code } if *code == keyword::RIGHT)+ {+ NativeValue::StyleValue(Arc::new(horizontal.data().clone()))+ } else {+ NativeValue::Unchanged+ }+ }(_, prop::POSITION_AREA) => match compute_position_area(value_data) {Some(value) => NativeValue::StyleValue(value),None => NativeValue::Unchanged,diff --git a/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txt b/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txtindex 63494aa5ecb..d1a8e15617f 100644--- a/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txt+++ b/Tests/LibWeb/Text/expected/css/CSSStyleDeclaration-has-indexed-property-getter.txt@@ -74,6 +74,7 @@ All properties associated with getComputedStyle(document.body):"text-align-last","text-anchor","text-decoration-skip-ink",+ "text-emphasis-position","text-indent","text-justify","text-orientation",diff --git a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txtindex 43d59c6aa6d..5cc8a8338c0 100644--- a/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt+++ b/Tests/LibWeb/Text/expected/css/CSSStyleProperties-all-supported-properties-and-default-values.txt@@ -975,6 +975,8 @@ All supported properties and their default values exposed from CSSStylePropertie'text-decoration-style': 'solid''textDecorationThickness': 'auto''text-decoration-thickness': 'auto'+'textEmphasisPosition': 'over'+'text-emphasis-position': 'over''textIndent': '0px''text-indent': '0px''textJustify': 'auto'diff --git a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txtindex ed1445b486d..6882ab58def 100644--- a/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt+++ b/Tests/LibWeb/Text/expected/css/getComputedStyle-print-all.txt@@ -72,6 +72,7 @@ text-align: starttext-align-last: autotext-anchor: starttext-decoration-skip-ink: auto+text-emphasis-position: overtext-indent: 0pxtext-justify: autotext-orientation: mixeddiff --git a/Tests/LibWeb/Text/expected/css/text-emphasis-position-values.txt b/Tests/LibWeb/Text/expected/css/text-emphasis-position-values.txtindex cc8223543dd..177eae7f69c 100644--- a/Tests/LibWeb/Text/expected/css/text-emphasis-position-values.txt+++ b/Tests/LibWeb/Text/expected/css/text-emphasis-position-values.txt@@ -1,10 +1,10 @@-over right: specified=over right, computed=undefined, inherited=undefined-right under: specified=right under, computed=undefined, inherited=undefined-left over: specified=left over, computed=undefined, inherited=undefined-under left: specified=under left, computed=undefined, inherited=undefined-initial=undefined-unset=undefined-time=0: undefined-time=499: undefined-time=500: undefined-time=1000: undefined+over right: specified=over right, computed=over, inherited=over+right under: specified=under right, computed=under, inherited=under+left over: specified=over left, computed=over left, inherited=over left+under left: specified=under left, computed=under left, inherited=under left+initial=over+unset=under left+time=0: over+time=499: over+time=500: under left+time=1000: under leftdiff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txtindex 46d10d71b6b..4a2fa917f9c 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/all-prop-revert-layer.txt@@ -69,6 +69,7 @@ Pass text-alignPass text-align-lastPass text-anchorPass text-decoration-skip-ink+Pass text-emphasis-positionPass text-indentPass text-justifyPass text-orientationdiff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-pseudo/parsing/marker-supported-properties-in-animation.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-pseudo/parsing/marker-supported-properties-in-animation.txtindex 90898c0ab19..865510ae948 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-pseudo/parsing/marker-supported-properties-in-animation.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-pseudo/parsing/marker-supported-properties-in-animation.txt@@ -2,8 +2,8 @@ Harness status: OKFound 96 tests-50 Pass-46 Fail+51 Pass+45 FailPass Animation of font in ::markerPass Animation of font-family in ::markerFail Animation of font-feature-settings in ::marker@@ -89,7 +89,7 @@ Pass Transition of word-spacing in ::markerPass Transition of text-decoration-skip-ink in ::markerFail Transition of text-emphasis in ::markerFail Transition of text-emphasis-color in ::marker-Fail Transition of text-emphasis-position in ::marker+Pass Transition of text-emphasis-position in ::markerFail Transition of text-emphasis-style in ::markerPass Transition of text-shadow in ::markerPass Transition of cursor in ::markerdiff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/animations/discrete-no-interpolation.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/animations/discrete-no-interpolation.txtindex 7b2e0cd3204..2658281bfb3 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/animations/discrete-no-interpolation.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/animations/discrete-no-interpolation.txt@@ -2,8 +2,8 @@ Harness status: OKFound 336 tests-252 Pass-84 Fail+294 Pass+42 FailPass CSS Transitions with transition-behavior:allow-discrete: property <text-decoration-line> from [initial] to [underline] at (-0.3) should be [initial]Pass CSS Transitions with transition-behavior:allow-discrete: property <text-decoration-line> from [initial] to [underline] at (0) should be [initial]Pass CSS Transitions with transition-behavior:allow-discrete: property <text-decoration-line> from [initial] to [underline] at (0.3) should be [initial]@@ -214,48 +214,48 @@ Pass Web Animations: property <text-decoration-thickness> from [from-font] to [1Pass Web Animations: property <text-decoration-thickness> from [from-font] to [123px] at (0.6) should be [123px]Pass Web Animations: property <text-decoration-thickness> from [from-font] to [123px] at (1) should be [123px]Pass Web Animations: property <text-decoration-thickness> from [from-font] to [123px] at (1.5) should be [123px]-Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]-Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]-Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]-Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]-Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]-Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]-Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]-Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]-Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]-Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]-Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]-Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]-Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]-Fail CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]-Fail CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [under right]-Fail CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0) should be [under right]-Fail CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [under right]-Fail CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]-Fail CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]-Fail CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]-Fail CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]-Fail CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [under right]-Fail CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0) should be [under right]-Fail CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [under right]-Fail CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]-Fail CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]-Fail CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]-Fail CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]-Fail CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]-Fail CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]-Fail CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]-Fail CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]-Fail CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]-Fail CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]-Fail CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]-Fail Web Animations: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]-Fail Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]-Fail Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]-Fail Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]-Fail Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]-Fail Web Animations: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]-Fail Web Animations: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]+Pass CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]+Pass CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]+Pass CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]+Pass CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]+Pass CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]+Pass CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]+Pass CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]+Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]+Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]+Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]+Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]+Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]+Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]+Pass CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]+Pass CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [under right]+Pass CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0) should be [under right]+Pass CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [under right]+Pass CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]+Pass CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]+Pass CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]+Pass CSS Transitions: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]+Pass CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [under right]+Pass CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0) should be [under right]+Pass CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [under right]+Pass CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]+Pass CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]+Pass CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]+Pass CSS Transitions with transition: all: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]+Pass CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]+Pass CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]+Pass CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]+Pass CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]+Pass CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]+Pass CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]+Pass CSS Animations: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]+Pass Web Animations: property <text-emphasis-position> from [initial] to [under right] at (-0.3) should be [initial]+Pass Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0) should be [initial]+Pass Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0.3) should be [initial]+Pass Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0.5) should be [under right]+Pass Web Animations: property <text-emphasis-position> from [initial] to [under right] at (0.6) should be [under right]+Pass Web Animations: property <text-emphasis-position> from [initial] to [under right] at (1) should be [under right]+Pass Web Animations: property <text-emphasis-position> from [initial] to [under right] at (1.5) should be [under right]Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-style> from [initial] to [dot] at (-0.3) should be [initial]Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-style> from [initial] to [dot] at (0) should be [initial]Fail CSS Transitions with transition-behavior:allow-discrete: property <text-emphasis-style> from [initial] to [dot] at (0.3) should be [initial]diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-computed.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-computed.txtindex 69bbeebff7c..81dacc16811 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-computed.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-computed.txt@@ -2,11 +2,12 @@ Harness status: OKFound 7 tests-7 Fail+6 Pass+1 FailFail Property text-emphasis-position value 'auto'-Fail Property text-emphasis-position value 'over'-Fail Property text-emphasis-position value 'under'-Fail Property text-emphasis-position value 'over right'-Fail Property text-emphasis-position value 'over left'-Fail Property text-emphasis-position value 'under right'-Fail Property text-emphasis-position value 'under left'\ No newline at end of file+Pass Property text-emphasis-position value 'over'+Pass Property text-emphasis-position value 'under'+Pass Property text-emphasis-position value 'over right'+Pass Property text-emphasis-position value 'over left'+Pass Property text-emphasis-position value 'under right'+Pass Property text-emphasis-position value 'under left'\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-valid.txtindex 5d24dd315e0..ce640dc5d2e 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-valid.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-text-decor/parsing/text-emphasis-position-valid.txt@@ -2,9 +2,10 @@ Harness status: OKFound 5 tests-5 Fail+3 Pass+2 FailFail e.style['text-emphasis-position'] = "auto" should set the property value-Fail e.style['text-emphasis-position'] = "over left" should set the property value+Pass e.style['text-emphasis-position'] = "over left" should set the property valueFail e.style['text-emphasis-position'] = "right under" should set the property value-Fail e.style['text-emphasis-position'] = "over" should set the property value-Fail e.style['text-emphasis-position'] = "under" should set the property value\ No newline at end of file+Pass e.style['text-emphasis-position'] = "over" should set the property value+Pass e.style['text-emphasis-position'] = "under" should set the property value\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-position.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-position.txtindex 7b88b2dd55d..218c06f4e0b 100644--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-position.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-emphasis-position.txt@@ -2,16 +2,16 @@ Harness status: OKFound 38 tests-26 Pass-12 Fail-Fail Can set 'text-emphasis-position' to CSS-wide keywords: initial-Fail Can set 'text-emphasis-position' to CSS-wide keywords: inherit-Fail Can set 'text-emphasis-position' to CSS-wide keywords: unset-Fail Can set 'text-emphasis-position' to CSS-wide keywords: revert-Fail Can set 'text-emphasis-position' to var() references: var(--A)+37 Pass+1 Fail+Pass Can set 'text-emphasis-position' to CSS-wide keywords: initial+Pass Can set 'text-emphasis-position' to CSS-wide keywords: inherit+Pass Can set 'text-emphasis-position' to CSS-wide keywords: unset+Pass Can set 'text-emphasis-position' to CSS-wide keywords: revert+Pass Can set 'text-emphasis-position' to var() references: var(--A)Fail Can set 'text-emphasis-position' to the 'auto' keyword: auto-Fail Can set 'text-emphasis-position' to the 'over' keyword: over-Fail Can set 'text-emphasis-position' to the 'under' keyword: under+Pass Can set 'text-emphasis-position' to the 'over' keyword: over+Pass Can set 'text-emphasis-position' to the 'under' keyword: underPass Setting 'text-emphasis-position' to a length: 0px throws TypeErrorPass Setting 'text-emphasis-position' to a length: -3.14em throws TypeErrorPass Setting 'text-emphasis-position' to a length: 3.14cm throws TypeError@@ -38,7 +38,7 @@ Pass Setting 'text-emphasis-position' to a number: calc(2 + 3) throws TypeErrorPass Setting 'text-emphasis-position' to a transform: translate(50%, 50%) throws TypeErrorPass Setting 'text-emphasis-position' to a transform: perspective(10em) throws TypeErrorPass Setting 'text-emphasis-position' to a transform: translate3d(0px, 1px, 2px) translate(0px, 1px) rotate3d(1, 2, 3, 45deg) rotate(45deg) scale3d(1, 2, 3) scale(1, 2) skew(1deg, 1deg) skewX(1deg) skewY(45deg) perspective(1px) matrix3d(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) matrix(1, 2, 3, 4, 5, 6) throws TypeError-Fail 'text-emphasis-position' does not support setting 'under right'-Fail 'text-emphasis-position' does not support setting 'over right'-Fail 'text-emphasis-position' does not support 'over left'-Fail 'text-emphasis-position' does not support 'under left'\ No newline at end of file+Pass 'text-emphasis-position' does not support setting 'under right'+Pass 'text-emphasis-position' does not support setting 'over right'+Pass 'text-emphasis-position' does not support 'over left'+Pass 'text-emphasis-position' does not support 'under left'\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/accumulation-per-property-002.txt b/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/accumulation-per-property-002.txtindex 461d7fd7a7e..2cf8e2cf8e4 100644--- a/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/accumulation-per-property-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/accumulation-per-property-002.txt@@ -1,8 +1,8 @@Harness status: OK-Found 342 tests+Found 345 tests-332 Pass+335 Pass10 FailPass SetupPass isolation (type: discrete) has testAccumulation function@@ -260,6 +260,9 @@ Pass text-decoration-skip-ink: "auto" onto "none"Pass text-decoration-style (type: discrete) has testAccumulation functionPass text-decoration-style: "dotted" onto "solid"Pass text-decoration-style: "solid" onto "dotted"+Pass text-emphasis-position (type: discrete) has testAccumulation function+Pass text-emphasis-position: "under left" onto "over"+Pass text-emphasis-position: "over" onto "under left"Pass text-overflow (type: discrete) has testAccumulation functionPass text-overflow: "ellipsis" onto "clip"Pass text-overflow: "clip" onto "ellipsis"diff --git a/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/addition-per-property-002.txt b/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/addition-per-property-002.txtindex 900bcafae51..18f7ed3c0b7 100644--- a/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/addition-per-property-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/addition-per-property-002.txt@@ -1,8 +1,8 @@Harness status: OK-Found 338 tests+Found 341 tests-328 Pass+331 Pass10 FailPass SetupPass isolation (type: discrete) has testAddition function@@ -260,6 +260,9 @@ Pass text-decoration-skip-ink: "auto" onto "none"Pass text-decoration-style (type: discrete) has testAddition functionPass text-decoration-style: "dotted" onto "solid"Pass text-decoration-style: "solid" onto "dotted"+Pass text-emphasis-position (type: discrete) has testAddition function+Pass text-emphasis-position: "under left" onto "over"+Pass text-emphasis-position: "over" onto "under left"Pass text-overflow (type: discrete) has testAddition functionPass text-overflow: "ellipsis" onto "clip"Pass text-overflow: "clip" onto "ellipsis"diff --git a/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/interpolation-per-property-002.txt b/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/interpolation-per-property-002.txtindex 270f8856223..a25ecda468a 100644--- a/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/interpolation-per-property-002.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/web-animations/animation-model/animation-types/interpolation-per-property-002.txt@@ -1,8 +1,8 @@Harness status: OK-Found 419 tests+Found 423 tests-406 Pass+410 Pass13 FailPass SetupPass isolation (type: discrete) has testInterpolation function@@ -316,6 +316,10 @@ Pass text-decoration-style (type: discrete) has testInterpolation functionPass text-decoration-style uses discrete animation when animating between "solid" and "dotted" with linear easingPass text-decoration-style uses discrete animation when animating between "solid" and "dotted" with effect easingPass text-decoration-style uses discrete animation when animating between "solid" and "dotted" with keyframe easing+Pass text-emphasis-position (type: discrete) has testInterpolation function+Pass text-emphasis-position uses discrete animation when animating between "over" and "under left" with linear easing+Pass text-emphasis-position uses discrete animation when animating between "over" and "under left" with effect easing+Pass text-emphasis-position uses discrete animation when animating between "over" and "under left" with keyframe easingPass text-overflow (type: discrete) has testInterpolation functionPass text-overflow uses discrete animation when animating between "clip" and "ellipsis" with linear easingPass text-overflow uses discrete animation when animating between "clip" and "ellipsis" with effect easing