justify-self-valid.html (1654B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Box Alignment Level 3: parsing justify-self with valid values</title> 6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#propdef-justify-self"> 7 <meta name="assert" content="justify-self supports the full grammar 'auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]'."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/parsing-testcommon.js"></script> 11 </head> 12 <body> 13 <script> 14 test_valid_value("justify-self", "auto"); 15 test_valid_value("justify-self", "normal"); 16 test_valid_value("justify-self", "stretch"); 17 18 // <baseline-position> = [ first | last ]? baseline 19 test_valid_value("justify-self", "baseline"); 20 test_valid_value("justify-self", "first baseline", "baseline"); 21 test_valid_value("justify-self", "last baseline"); 22 23 // <overflow-position>? [ <self-position> | left | right ] 24 // <overflow-position> = unsafe | safe 25 // <self-position> = center | start | end | self-start | self-end | flex-start | flex-end 26 test_valid_value("justify-self", "center"); 27 test_valid_value("justify-self", "start"); 28 test_valid_value("justify-self", "end"); 29 test_valid_value("justify-self", "self-start"); 30 test_valid_value("justify-self", "self-end"); 31 test_valid_value("justify-self", "flex-start"); 32 test_valid_value("justify-self", "flex-end"); 33 test_valid_value("justify-self", "unsafe center"); 34 test_valid_value("justify-self", "safe self-end"); 35 test_valid_value("justify-self", "left"); 36 test_valid_value("justify-self", "unsafe right"); 37 </script> 38 </body> 39 </html>