will-change-valid.html (1171B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Will Change Test: parsing will-change with valid values</title> 6 <link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org"> 7 <link rel="help" href="https://drafts.csswg.org/css-will-change/#propdef-will-change"> 8 <meta name="assert" content="will-change supports the full grammar 'auto | <animateable-feature>#'."> 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_valid_value("will-change", "auto"); 16 17 // <animateable-feature> = scroll-position | contents | <custom-ident> 18 test_valid_value("will-change", "scroll-position"); 19 test_valid_value("will-change", "contents"); 20 test_valid_value("will-change", "transform"); 21 test_valid_value("will-change", "background-color"); 22 23 test_valid_value("will-change", "scroll-position, contents"); 24 test_valid_value("will-change", "scroll-position, transform"); 25 test_valid_value("will-change", "contents, transform"); 26 test_valid_value("will-change", "transform, background-color"); 27 </script> 28 </body> 29 </html>