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

Side by Side Diff: LayoutTests/svg/css/display-computed.html

Issue 379463002: Display property as specified on svg elements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/svg/css/display.html ('k') | LayoutTests/svg/css/display-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 svg { width: 0; height: 0; }
6 #t1, #t1 g { display: inline }
7 #t2, #t2 g { display: block; }
8 #t3, #t3 g { display: inline-block; }
9 #t4, #t4 g { display: inline-table; }
10 #t5, #t5 g { display: table; }
11 #t6, #t6 g { display: table-cell; }
12 </style>
13 <svg id="t1"><g/></svg>
14 <svg id="t2"><g/></svg>
15 <svg id="t3"><g/></svg>
16 <svg id="t4"><g/></svg>
17 <svg id="t5"><g/></svg>
18 <svg id="t6"><g/></svg>
19 <script>
20 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t1")).d isplay, "inline"); }, "svg:svg display inline");
21 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t1 g")) .display, "inline"); }, "svg:g display inline");
22 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t2")).d isplay, "block"); }, "svg:svg display block");
23 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t2 g")) .display, "block"); }, "svg:g display block");
24 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t3")).d isplay, "inline-block"); }, "svg:svg display inline-block");
25 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t3 g")) .display, "inline-block"); }, "svg:g display inline-block");
26 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t4")).d isplay, "inline-table"); }, "svg:svg display inline-table");
27 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t4 g")) .display, "inline-table"); }, "svg:g display inline-table");
28 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t5")).d isplay, "table"); }, "svg:svg display table");
29 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t5 g")) .display, "table"); }, "svg:g display table");
30 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t6")).d isplay, "table-cell"); }, "svg:svg display table-cell");
31 test(function(){ assert_equals(getComputedStyle(document.querySelector("#t6 g")) .display, "table-cell"); }, "svg:g display table-cell");
32 </script>
OLDNEW
« no previous file with comments | « LayoutTests/svg/css/display.html ('k') | LayoutTests/svg/css/display-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698