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

Side by Side Diff: third_party/WebKit/LayoutTests/external/csswg-test/css-align-3/self-alignment/place-self-shorthand-003.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-self shorthand - initial 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/#place-self-property" />
5 <meta name="assert" content="Check that place-self's 'initial' value expands to 'align-self' and 'justify-self'." />
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <div id="log"></div>
9 <script>
10 var div = document.createElement("div");
11 document.body.appendChild(div);
12 div.style["align-self"] = "start";
13 div.style["justify-self"] = "end";
14 div.setAttribute("style", "place-self: initial");
15
16 test(function() {
17 assert_equals(div.style["align-self"],
18 "initial", "place-self specified value for align-self");
19 }, "Check place-self: initial - align-self expanded value");
20
21 test(function() {
22 assert_equals(div.style["justify-self"],
23 "initial", "place-self specified value for justify-self");
24 }, "Check place-self: initial - justify-self expanded value");
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698