kind-of-widget-fallback-range-border-image-repeat-001.html (1392B)
1 <!-- DO NOT EDIT. This file has been generated. Source: 2 ../tools/build-compute-kind-widget-fallback-props.py 3 --> 4 <!DOCTYPE html> 5 <meta charset="utf-8"> 6 <title>CSS Basic User Interface Test: Compute kind of widget: border-image-repeat maybe disables native appearance for range</title> 7 <link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-disabling-properties"> 8 <link rel="help" href="https://html.spec.whatwg.org/#widgets"> 9 <meta name="assert" content="appropriate widget is used when props includes border-image-repeat."> 10 <link rel="match" href="../compute-kind-widget-fallback-range-ref.html"> 11 <style> 12 #container { width: 500px; } 13 /* NOTE: This rule is only used in the search-text-input tests: */ 14 #container > #search-text-input { appearance: textfield; } 15 /* NOTE: This rule is only used in the select-menulist-button tests: */ 16 #container > #select-menulist-button { appearance: none; appearance: menulist-button; } 17 </style> 18 19 <div id="container"> 20 <input id="range-input" type="range"> 21 </div> 22 23 <script> 24 // Set author-level CSS that matches UA style, but don't use the 'revert' value. 25 const elements = document.querySelectorAll('#container > *'); 26 const props = "border-image-repeat".split(","); 27 for (const el of elements) { 28 for (const prop of props) { 29 el.style.setProperty(prop, getComputedStyle(el).getPropertyValue(prop)); 30 } 31 } 32 </script>