overscroll-behavior-invalid.html (1107B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Overscroll Behavior: parsing overscroll-behavior 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-overscroll-behavior/#propdef-overscroll-behavior"> 8 <meta name="assert" content="overscroll-behavior supports only the grammar '[ contain | none | auto ]{1,2}'."> 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 'use strict'; 16 test_invalid_value("overscroll-behavior", "normal"); 17 test_invalid_value("overscroll-behavior", "0"); 18 test_invalid_value("overscroll-behavior", "contain contain contain"); 19 20 21 for (let property of ["overscroll-behavior-x", "overscroll-behavior-y", "overscroll-behavior-inline", "overscroll-behavior-block"]) { 22 test_invalid_value(property, "normal"); 23 test_invalid_value(property, "0"); 24 test_invalid_value(property, "contain contain"); 25 } 26 </script> 27 </body> 28 </html>