| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>CSS Grid Layout Test: parsing grid-template-rows with invalid values</title> |
| <link rel="help" href="https://drafts.csswg.org/css-grid-1/#propdef-grid-template-rows"> |
| <meta name="assert" content="grid-template-rows supports only the grammar 'none | <track-list> | <auto-track-list>'."> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="/css/support/parsing-testcommon.js"></script> |
| </head> |
| <body> |
| <script> |
| test_invalid_value("grid-template-rows", '-10px'); |
| test_invalid_value("grid-template-rows", '-20%'); |
| test_invalid_value("grid-template-rows", '-5fr'); |
| test_invalid_value("grid-template-rows", 'minmax(5fr, calc(0.5em + 10px))'); |
| test_invalid_value("grid-template-rows", 'minmax(-10px, auto)'); |
| test_invalid_value("grid-template-rows", 'minmax(-20%, max-content)'); |
| test_invalid_value("grid-template-rows", 'minmax(min-content, -20%)'); |
| test_invalid_value("grid-template-rows", 'fit-content(-10px)'); |
| test_invalid_value("grid-template-rows", 'fit-content(-20%)'); |
| test_invalid_value("grid-template-rows", '[one] 10px [two three] repeat(20%) [four five six] 3fr [seven]'); |
| test_invalid_value("grid-template-rows", '[one]'); |
| test_invalid_value("grid-template-rows", '[one] 10px [two] [three]'); |
| test_invalid_value("grid-template-rows", 'repeat(auto-fill, -10px)'); |
| test_invalid_value("grid-template-rows", 'repeat(auto-fill, 10px) repeat(auto-fit, 20%)'); |
| test_invalid_value("grid-template-rows", '[auto] 1px'); |
| test_invalid_value("grid-template-rows", '-10px repeat(auto-fit, auto)'); |
| test_invalid_value("grid-template-rows", '-10px repeat(auto-fill, min-content)'); |
| test_invalid_value("grid-template-rows", '-20% repeat(auto-fit, max-content)'); |
| test_invalid_value("grid-template-rows", 'repeat(auto-fill, fit-content)'); |
| test_invalid_value("grid-template-rows", 'auto repeat(auto-fill, auto) auto'); |
| test_invalid_value("grid-template-rows", 'min-content repeat(auto-fill, auto) min-content'); |
| test_invalid_value("grid-template-rows", 'max-content repeat(auto-fill, auto) max-content'); |
| test_invalid_value("grid-template-rows", 'fit-content(200px) repeat(auto-fill, auto) fit-content(200px)'); |
| test_invalid_value("grid-template-rows", 'auto repeat(auto-fill, auto) repeat(5, auto)'); |
| test_invalid_value("grid-template-rows", 'auto repeat(auto-fill, min-content) auto'); |
| test_invalid_value("grid-template-rows", 'min-content repeat(auto-fill, min-content) min-content'); |
| test_invalid_value("grid-template-rows", 'max-content repeat(auto-fill, min-content) max-content'); |
| test_invalid_value("grid-template-rows", 'fit-content(200px) repeat(auto-fill, min-content) fit-content(200px)'); |
| test_invalid_value("grid-template-rows", 'min-content repeat(auto-fill, min-content) repeat(5, min-content)'); |
| test_invalid_value("grid-template-rows", 'auto repeat(auto-fill, max-content) auto'); |
| test_invalid_value("grid-template-rows", 'min-content repeat(auto-fill, max-content) min-content'); |
| test_invalid_value("grid-template-rows", 'max-content repeat(auto-fill, max-content) max-content'); |
| test_invalid_value("grid-template-rows", 'fit-content(200px) repeat(auto-fill, max-content) fit-content(200px)'); |
| test_invalid_value("grid-template-rows", 'max-content repeat(auto-fill, max-content) repeat(5, max-content)'); |
| test_invalid_value("grid-template-rows", 'auto repeat(auto-fill, fit-content(200px)) auto'); |
| test_invalid_value("grid-template-rows", 'min-content repeat(auto-fill, fit-content(200px)) min-content'); |
| test_invalid_value("grid-template-rows", 'max-content repeat(auto-fill, fit-content(200px)) max-content'); |
| test_invalid_value("grid-template-rows", 'fit-content(200px) repeat(auto-fill, fit-content(200px)) fit-content(200px)'); |
| test_invalid_value("grid-template-rows", 'fit-content(200px) repeat(auto-fill, fit-content(200px)) repeat(5, fit-content(200px))'); |
| </script> |
| </body> |
| </html> |