grid-template-areas-invalid.html (1234B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Grid Layout Test: parsing grid-template-areas with invalid values</title> 6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> 7 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#propdef-grid-template-areas"> 8 <meta name="assert" content="grid-template-areas supports only the grammar 'none | <string>+'."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/css/support/parsing-testcommon.js"></script> 12 </head> 13 <body> 14 <script> 15 test_invalid_value("grid-template-areas", "auto"); 16 test_invalid_value("grid-template-areas", 'none "first"'); 17 test_invalid_value("grid-template-areas", '"first" none'); 18 test_invalid_value("grid-template-areas", '""'); 19 test_invalid_value("grid-template-areas", '" "'); 20 test_invalid_value("grid-template-areas", '"." ""'); 21 test_invalid_value("grid-template-areas", '"." " "'); 22 test_invalid_value("grid-template-areas", '"first" ""'); 23 test_invalid_value("grid-template-areas", '"first" "" "second"'); 24 test_invalid_value("grid-template-areas", '"first" " "'); 25 test_invalid_value("grid-template-areas", '"" none'); 26 </script> 27 </body> 28 </html>