| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>CSS Grid Layout Test: parsing 'grid' with valid values</title> |
| <link rel="help" href="https://drafts.csswg.org/css-grid-2"> |
| <meta name="assert" content="grid-template supports the grammar `none | <track-list> | <auto-track-list> | subgrid <line-name-list>?`."> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <script src="/css/support/parsing-testcommon.js"></script> |
| </head> |
| <body> |
| <script> |
| |
| // <'grid-template'> values |
| test_valid_value("grid-template-rows", 'subgrid'); |
| test_valid_value("grid-template-rows", 'subgrid [a]'); |
| test_valid_value("grid-template-rows", 'subgrid [a] [b]'); |
| test_valid_value("grid-template-rows", 'subgrid [a] [b] [c]'); |
| test_valid_value("grid-template-rows", 'subgrid []'); |
| test_valid_value("grid-template-rows", 'subgrid [a] [b] [] [c]'); |
| test_valid_value("grid-template-rows", 'subgrid [] [] [] [c]'); |
| test_valid_value("grid-template-rows", 'subgrid [] [] [] []'); |
| test_valid_value("grid-template-rows", 'subgrid repeat(auto-fill, [a])'); |
| test_valid_value("grid-template-rows", 'subgrid [a] repeat(auto-fill, [b])'); |
| test_valid_value("grid-template-rows", 'subgrid [a] repeat(auto-fill, [b]) [c]'); |
| test_valid_value("grid-template-rows", 'subgrid [] repeat(auto-fill, []) []'); |
| test_valid_value("grid-template-rows", 'subgrid repeat(2, [a])'); |
| test_valid_value("grid-template-rows", 'subgrid repeat(2, [a] [b])'); |
| test_valid_value("grid-template-rows", 'subgrid [a] repeat(2, [b])'); |
| test_valid_value("grid-template-rows", 'subgrid [a] repeat(2, [b]) [c]'); |
| test_valid_value("grid-template-rows", 'subgrid [] repeat(2, []) []'); |
| test_valid_value("grid-template-rows", 'subgrid [a] repeat(2, [b]) repeat(auto-fill, [c]) [d]'); |
| |
| test_valid_value("grid-template-columns", 'subgrid'); |
| test_valid_value("grid-template-columns", 'subgrid [a]'); |
| test_valid_value("grid-template-columns", 'subgrid [a] [b]'); |
| test_valid_value("grid-template-columns", 'subgrid [a] [b] [c]'); |
| test_valid_value("grid-template-columns", 'subgrid []'); |
| test_valid_value("grid-template-columns", 'subgrid [a] [b] [] [c]'); |
| test_valid_value("grid-template-columns", 'subgrid [] [] [] [c]'); |
| test_valid_value("grid-template-columns", 'subgrid [] [] [] []'); |
| test_valid_value("grid-template-columns", 'subgrid repeat(auto-fill, [a])'); |
| test_valid_value("grid-template-columns", 'subgrid [a] repeat(auto-fill, [b])'); |
| test_valid_value("grid-template-columns", 'subgrid [a] repeat(auto-fill, [b]) [c]'); |
| test_valid_value("grid-template-columns", 'subgrid [] repeat(auto-fill, []) []'); |
| test_valid_value("grid-template-columns", 'subgrid repeat(2, [a])'); |
| test_valid_value("grid-template-columns", 'subgrid repeat(2, [a] [b])'); |
| test_valid_value("grid-template-columns", 'subgrid [a] repeat(2, [b])'); |
| test_valid_value("grid-template-columns", 'subgrid [a] repeat(2, [b]) [c]'); |
| test_valid_value("grid-template-columns", 'subgrid [] repeat(2, []) []'); |
| test_valid_value("grid-template-columns", 'subgrid [a] repeat(2, [b]) repeat(auto-fill, [c]) [d]'); |
| |
| </script> |
| </body> |
| </html> |