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

Side by Side Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-image-threshold-003.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 Image Threshold Inherit</title> 4 <title>Shape Image Threshold 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-image-th reshold-property"> 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-th reshold-property">
8 <meta name="assert" content="shape-outside can be assigned the 'inherit' value and does not inherit by default."> 8 <meta name="assert" content="shape-outside can be assigned the 'inherit' value and does not inherit by default.">
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 24 matching lines...) Expand all
35 } 35 }
36 36
37 test(function() { 37 test(function() {
38 var results = setUpTest("0.5", "inherit"); 38 var results = setUpTest("0.5", "inherit");
39 assert_equals(results[0], "inherit"); 39 assert_equals(results[0], "inherit");
40 assert_equals(results[1], "0.5"); 40 assert_equals(results[1], "0.5");
41 }, "shape-image-threshold can be assigned 'inherit' value"); 41 }, "shape-image-threshold can be assigned 'inherit' value");
42 42
43 test(function() { 43 test(function() {
44 var results = setUpTest("0.3", null); 44 var results = setUpTest("0.3", null);
45 assert_equals(results[0], null); 45 assert_equals(results[0], "");
46 assert_equals(results[1], "0"); 46 assert_equals(results[1], "0");
47 }, "shape-image-threshold is not inherited and defaults to 0"); 47 }, "shape-image-threshold is not inherited and defaults to 0");
48 48
49 test(function() { 49 test(function() {
50 var results = setUpTest("0.2", "0.5"); 50 var results = setUpTest("0.2", "0.5");
51 assert_equals(results[0], "0.5"); 51 assert_equals(results[0], "0.5");
52 assert_equals(results[1], "0.5"); 52 assert_equals(results[1], "0.5");
53 }, "shape-margin is not inherited"); 53 }, "shape-margin is not inherited");
54 </script> 54 </script>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698