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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/shape-outside-shape-inherit-000.html

Issue 2020943002: update-w3c-deps: Do not modify testharness tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 Outside Box Inherit Value</title> 4 <title>Shape Outside Box Inherit Value</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="Bear Travis" href="mailto:betravis@adobe.com"> 6 <link rel="author" title="Bear Travis" href="mailto:betravis@adobe.com">
7 <link rel="reviewer" title="Alan Stearns" href="mailto:stearns@adobe.com "> <!-- 2014-03-04 --> 7 <link rel="reviewer" title="Alan Stearns" href="mailto:stearns@adobe.com "> <!-- 2014-03-04 -->
8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside- property"> 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside- property">
9 <meta name="assert" content="Shape-outside takes can be assigned the 'in herit' value."> 9 <meta name="assert" content="Shape-outside takes can be assigned the 'in herit' value.">
10 <meta name="flags" content="dom"> 10 <meta name="flags" content="dom">
11 <script src="/resources/testharness.js"></script> 11 <script src="/resources/testharness.js"></script>
12 <script src="/resources/testharnessreport.js"></script> 12 <script src="/resources/testharnessreport.js"></script>
13 <script src="support/parsing-utils.js"></script> 13 <script src="support/parsing-utils.js"></script>
14 </head> 14 </head>
15 <body> 15 <body>
16 <div id="log"></div> 16 <div id="log"></div>
17 <script type="text/javascript"> 17 <script type="text/javascript">
18 test(function() { 18 test(function() {
19 var outer = document.createElement("div"); 19 var outer = document.createElement("div");
20 var inner = document.createElement("div"); 20 var inner = document.createElement("div");
21 outer.appendChild(inner); 21 outer.appendChild(inner);
22 outer.style.setProperty("shape-outside", "content-box"); 22 outer.style.setProperty("shape-outside", "content-box");
23 inner.style.setProperty("shape-outside", "inherit"); 23 inner.style.setProperty("shape-outside", "inherit");
24 document.body.appendChild(outer); 24 document.body.appendChild(outer);
25 var inline = inner.style.getPropertyValue("shape-outside"); 25 var inline = inner.style.getPropertyValue("shape-outside");
26 var style = getComputedStyle(inner); 26 var style = getComputedStyle(inner);
27 var computed = style.getPropertyValue("shape-outside"); 27 var computed = style.getPropertyValue("shape-outside");
28 document.body.removeChild(outer); 28 document.body.removeChild(outer);
29 assert_equals(inline, "inherit"); 29 assert_equals(inline, "inherit");
30 assert_equals(computed, "content-box"); 30 assert_equals(computed, "content-box");
31 }, "shape-outside can be assigned 'inherit' value"); 31 }, "shape-outside can be assigned 'inherit' value");
32 </script> 32 </script>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698