Skip to content

Commit

Permalink
Auto merge of #10684 - Swatinem:hide_svg, r=Ms2ger
Browse files Browse the repository at this point in the history
do not render svg children, fixes #10646

r? jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10684)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Apr 25, 2016
2 parents 0efbe5e + 606b11c commit 97a45dc
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3 deletions.
8 changes: 8 additions & 0 deletions resources/servo.css
Expand Up @@ -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;
}

This file was deleted.

24 changes: 24 additions & 0 deletions tests/wpt/mozilla/meta/MANIFEST.json
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions 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>
2 changes: 2 additions & 0 deletions tests/wpt/mozilla/tests/css/svg_children_ref.html
@@ -0,0 +1,2 @@
<!doctype html>
<meta charset="utf-8">

0 comments on commit 97a45dc

Please sign in to comment.