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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-margin-005.html

Issue 1274643002: CSSStyleDeclaraction returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated failing tests Created 5 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Shape Margin - inherit</title> 4 <title>Shape Margin - inherit</title>
5 <link rel="author" title="Adobe" href="http://html.adobe.com/"> 5 <link rel="author" title="Adobe" href="http://html.adobe.com/">
6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"> 6 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p roperty"> 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-p roperty">
8 <meta name="assert" content="The shape-margin value is not inherited and can be assigned the 'inherit' value."> 8 <meta name="assert" content="The shape-margin value is not inherited and can be assigned the 'inherit' value.">
9 <meta name="flags" content="dom"> 9 <meta name="flags" content="dom">
10 <script src="../../../../../resources/testharness.js"></script> 10 <script src="../../../../../resources/testharness.js"></script>
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 test(function() { 38 test(function() {
39 var results = setUpTest("10px", "inherit"); 39 var results = setUpTest("10px", "inherit");
40 assert_equals(results[0], "inherit"); 40 assert_equals(results[0], "inherit");
41 assert_equals(results[1], "10px"); 41 assert_equals(results[1], "10px");
42 }, "shape-margin can be assigned 'inherit' value"); 42 }, "shape-margin can be assigned 'inherit' value");
43 43
44 test(function() { 44 test(function() {
45 var results = setUpTest("5px", null); 45 var results = setUpTest("5px", null);
46 assert_equals(results[0], null); 46 assert_equals(results[0], "");
47 assert_equals(results[1], "0px"); 47 assert_equals(results[1], "0px");
48 }, "shape-margin is not inherited and defaults to 0px"); 48 }, "shape-margin is not inherited and defaults to 0px");
49 49
50 test(function() { 50 test(function() {
51 var results = setUpTest("15px", "10px"); 51 var results = setUpTest("15px", "10px");
52 assert_equals(results[0], "10px"); 52 assert_equals(results[0], "10px");
53 assert_equals(results[1], "10px"); 53 assert_equals(results[1], "10px");
54 }, "shape-margin is not inherited"); 54 }, "shape-margin is not inherited");
55 55
56 </script> 56 </script>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698