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

Side by Side Diff: third_party/WebKit/LayoutTests/external/csswg-test/css-align-3/content-distribution/place-content-shorthand-005.html

Issue 2762043004: [css-align] Import the CSS Box Alignment tests from the CSSWG Test Suite (Closed)
Patch Set: Upload suggested changes. Created 3 years, 9 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
(Empty)
1 <!DOCTYPE html>
2 <title>CSS Box Alignment: place-content shorthand - inherit value</title>
3 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" />
4 <link rel="help" href="http://www.w3.org/TR/css3-align/#propdef-place-content" / >
5 <meta name="assert" content="Check that place-content's 'inherit' value expands to 'align-content' and 'justify-content'." />
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <style>
9 #test {
10 place-content: start end;
11 }
12 </style>
13 <div id="log"></div>
14 <div id="test"></div>
15 <script>
16 var child = document.createElement("div");
17 document.getElementById("test").appendChild(child);
18 child.setAttribute("style", "place-content: inherit");
19 var style = getComputedStyle(child);
20
21 test(function() {
22 assert_equals(style.getPropertyValue("align-content"),
23 "start", "place-content resolved value for align-content");
24 }, "Check place-content: inherit - align-content resolved value");
25
26 test(function() {
27 assert_equals(style.getPropertyValue("justify-content"),
28 "end", "place-content resolved value for justify-content");
29 }, "Check place-content: inherit - justify-content resolved value");
30 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698