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

Side by Side Diff: third_party/WebKit/LayoutTests/external/csswg-test/css-align-3/self-alignment/place-self-shorthand-004.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 - invalid values</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 invalid values are properly detected at parsing time." />
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script src="../resources/alignment-parsing-utils.js"></script>
9 <div id="log"></div>
10 <script>
11 function checkInvalidValues(value)
12 {
13 checkPlaceShorthandInvalidValues("place-self", "align-self", "justify-se lf", value);
14 }
15
16 test(function() {
17 checkInvalidValues("center safe")
18 checkInvalidValues("true center")
19 }, "Verify overflow keywords are invalid");
20
21 test(function() {
22 checkInvalidValues("center space-between start")
23 }, "Verify fallback values are invalid");
24
25 test(function() {
26 checkInvalidValues("10px left")
27 checkInvalidValues("right 10%")
28 }, "Verify numeric values are invalid");
29
30 test(function() {
31 checkInvalidValues("")
32 }, "Verify empty declaration is invalid");
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698