do not render svg children, fixes #10646

This commit is contained in:
Arpad Borsos 2016-04-18 17:06:53 +02:00
parent 8819dab4e3
commit 606b11c0ec
5 changed files with 43 additions and 3 deletions

View file

@ -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;
}

View file

@ -1,3 +0,0 @@
[text-decoration-propagation-01.htm]
type: reftest
expected: FAIL

View file

@ -4587,6 +4587,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",
@ -11249,6 +11261,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",

View file

@ -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>

View file

@ -0,0 +1,2 @@
<!doctype html>
<meta charset="utf-8">