Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Unified Diff: third_party/WebKit/LayoutTests/svg/css/display-computed.html

Issue 2684833003: Disable display: contents in SVG. (Closed)
Patch Set: Make display: contents compute to inline in SVG subtrees. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/css/display-computed.html
diff --git a/third_party/WebKit/LayoutTests/svg/css/display-computed.html b/third_party/WebKit/LayoutTests/svg/css/display-computed.html
index 839b2de37b9c018c2db7a7fa0d5ddc4c323b68f5..4e67d3cdb0ac646d754fe79bae469bfc0b6a42aa 100644
--- a/third_party/WebKit/LayoutTests/svg/css/display-computed.html
+++ b/third_party/WebKit/LayoutTests/svg/css/display-computed.html
@@ -9,6 +9,7 @@ svg { width: 0; height: 0; }
#t4, #t4 g { display: inline-table; }
#t5, #t5 g { display: table; }
#t6, #t6 g { display: table-cell; }
+#t7, #t7 g { display: contents; }
</style>
<svg id="t1"><g/></svg>
<svg id="t2"><g/></svg>
@@ -16,6 +17,7 @@ svg { width: 0; height: 0; }
<svg id="t4"><g/></svg>
<svg id="t5"><g/></svg>
<svg id="t6"><g/></svg>
+<svg id="t7"><g/></svg>
<script>
test(function(){ assert_equals(getComputedStyle(document.querySelector("#t1")).display, "inline"); }, "svg:svg display inline");
test(function(){ assert_equals(getComputedStyle(document.querySelector("#t1 g")).display, "inline"); }, "svg:g display inline");
@@ -29,4 +31,6 @@ test(function(){ assert_equals(getComputedStyle(document.querySelector("#t5")).d
test(function(){ assert_equals(getComputedStyle(document.querySelector("#t5 g")).display, "table"); }, "svg:g display table");
test(function(){ assert_equals(getComputedStyle(document.querySelector("#t6")).display, "table-cell"); }, "svg:svg display table-cell");
test(function(){ assert_equals(getComputedStyle(document.querySelector("#t6 g")).display, "table-cell"); }, "svg:g display table-cell");
+test(function(){ assert_equals(getComputedStyle(document.querySelector("#t7")).display, "inline"); }, "svg:svg display contents computes to inline");
+test(function(){ assert_equals(getComputedStyle(document.querySelector("#t7 g")).display, "inline"); }, "svg:g display contents computes to inline");
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/css/display.html ('k') | third_party/WebKit/LayoutTests/svg/css/display-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698