diff --git a/testing/web-platform/tests/css/css-pseudo/marker-line-height-ref.html b/testing/web-platform/tests/css/css-pseudo/marker-line-height-ref.html
new file mode 100644
index 000000000000..64b0d41a3898
--- /dev/null
+++ b/testing/web-platform/tests/css/css-pseudo/marker-line-height-ref.html
@@ -0,0 +1,42 @@
+
+
+
CSS Reftest Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ x
+ x
+ x
+ x
+
+
+ x
+ x
+ x
+ x
+
diff --git a/testing/web-platform/tests/css/css-pseudo/marker-line-height.html b/testing/web-platform/tests/css/css-pseudo/marker-line-height.html
new file mode 100644
index 000000000000..8d226e3feaa3
--- /dev/null
+++ b/testing/web-platform/tests/css/css-pseudo/marker-line-height.html
@@ -0,0 +1,65 @@
+
+
+::marker supports 'line-height'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ x
+ x
+ x
+ x
+
+
+ x
+ x
+ x
+ x
+
diff --git a/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties-in-animation.html b/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties-in-animation.html
index 5f7dab7a8bfb..df0e9bc6d34b 100644
--- a/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties-in-animation.html
+++ b/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties-in-animation.html
@@ -20,7 +20,7 @@ const interpolationTests = [
property: "font",
from: "oblique normal 100 ultra-condensed 5px / 20px serif",
to: "italic small-caps 900 ultra-expanded 25px / 50px Ahem",
- midPoint: ["italic small-caps 500 expanded 15px Ahem", "italic small-caps 500 expanded 15px/normal Ahem"],
+ midPoint: ["italic small-caps 500 expanded 15px / 35px Ahem", "italic small-caps 500 expanded 15px/35px Ahem"],
},
{
property: "font-family",
@@ -113,6 +113,14 @@ const interpolationTests = [
midPoint: "500",
},
+ // `line-height` is not a font property but is a longhand of `font`, and is also supported.
+ {
+ property: "line-height",
+ from: "20px",
+ to: "50px",
+ midPoint: "35px",
+ },
+
// ::marker supports `white-space`
{
property: "white-space",
@@ -292,15 +300,6 @@ const interpolationTests = [
to: "decimal",
midPoint: "disc",
},
-
- // ::marker does NOT support `line-height` because, despite being a
- // longhand of `font`, it's not a font property.
- {
- property: "line-height",
- from: "20px",
- to: "50px",
- midPoint: "normal",
- },
];
const target = document.getElementById("target");
diff --git a/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties.html b/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties.html
index 15a4e894ff3a..62a54a338b7c 100644
--- a/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties.html
+++ b/testing/web-platform/tests/css/css-pseudo/parsing/marker-supported-properties.html
@@ -14,7 +14,7 @@