tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

kind-of-widget-fallback-input-submit-border-inline-start-width-001.html (1447B)


      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-start-width maybe disables native appearance for input-submit</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-start-width.">
     10 <link rel="match" href="../compute-kind-widget-fallback-input-submit-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="submit-input" type="submit" value="input-submit">
     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-start-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>