aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resources/servo.css8
-rw-r--r--tests/wpt/metadata-css/css-text-decor-3_dev/html/text-decoration-propagation-01.htm.ini3
-rw-r--r--tests/wpt/mozilla/meta/MANIFEST.json24
-rw-r--r--tests/wpt/mozilla/tests/css/svg_children.html9
-rw-r--r--tests/wpt/mozilla/tests/css/svg_children_ref.html2
5 files changed, 43 insertions, 3 deletions
diff --git a/resources/servo.css b/resources/servo.css
index 97796bf183c..5fe1b27bf46 100644
--- a/resources/servo.css
+++ b/resources/servo.css
@@ -60,3 +60,11 @@ details[open]::-servo-details-content {
display: block;
}
+/*
+ * Until servo supports svg properly, make sure to at least prevent svg
+ * children from being layed out and rendered like usual html.
+ * https://github.com/servo/servo/issues/10646
+ */
+svg > * {
+ display: none;
+}
diff --git a/tests/wpt/metadata-css/css-text-decor-3_dev/html/text-decoration-propagation-01.htm.ini b/tests/wpt/metadata-css/css-text-decor-3_dev/html/text-decoration-propagation-01.htm.ini
deleted file mode 100644
index 05a585d4c1c..00000000000
--- a/tests/wpt/metadata-css/css-text-decor-3_dev/html/text-decoration-propagation-01.htm.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[text-decoration-propagation-01.htm]
- type: reftest
- expected: FAIL
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 72b1a3c9946..9bc3a4cb036 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -4588,6 +4588,18 @@
"url": "/_mozilla/css/submit_focus_a.html"
}
],
+ "css/svg_children.html": [
+ {
+ "path": "css/svg_children.html",
+ "references": [
+ [
+ "/_mozilla/css/svg_children_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/svg_children.html"
+ }
+ ],
"css/table_auto_width.html": [
{
"path": "css/table_auto_width.html",
@@ -11280,6 +11292,18 @@
"url": "/_mozilla/css/submit_focus_a.html"
}
],
+ "css/svg_children.html": [
+ {
+ "path": "css/svg_children.html",
+ "references": [
+ [
+ "/_mozilla/css/svg_children_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/svg_children.html"
+ }
+ ],
"css/table_auto_width.html": [
{
"path": "css/table_auto_width.html",
diff --git a/tests/wpt/mozilla/tests/css/svg_children.html b/tests/wpt/mozilla/tests/css/svg_children.html
new file mode 100644
index 00000000000..9562a1c5a2a
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/svg_children.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>not rendering children of svg</title>
+<link rel="match" href="svg_children_ref.html">
+<svg>
+ <style>
+ /* some text content that should not be rendered */
+ </style>
+</svg>
diff --git a/tests/wpt/mozilla/tests/css/svg_children_ref.html b/tests/wpt/mozilla/tests/css/svg_children_ref.html
new file mode 100644
index 00000000000..cadbabc7c5a
--- /dev/null
+++ b/tests/wpt/mozilla/tests/css/svg_children_ref.html
@@ -0,0 +1,2 @@
+<!doctype html>
+<meta charset="utf-8">