kind-of-widget-fallback-progress-border-inline-end-width-001.html (1418B)
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-inline-end-width maybe disables native appearance for progress</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-inline-end-width."> 10 <link rel="match" href="../compute-kind-widget-fallback-progress-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 <progress id="progress" value=0.5></progress> 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-inline-end-width".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>