tor-browser

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

outline-no-relayout-001.xht (1704B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4     <title>CSS Test: Outline-width is changed via script</title>
      5     <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6     <link rel="help" href="http://www.w3.org/TR/CSS21/ui.html#dynamic-outlines" />
      7     <meta name="flags" content="dom interact" />
      8     <meta name="assert" content="Scripts can change outline width, without causing a reflow." />
      9     <meta http-equiv="Content-Script-Type" content="text/javascript" />
     10     <style type="text/css">
     11         #div1
     12         {
     13             background: blue;
     14             margin-left: 50px;
     15             outline-style: solid;
     16             outline-color: black;
     17             outline-width: 10px;
     18         }
     19         #div2
     20         {
     21             background: orange;
     22             margin-left: 50px;
     23         }
     24         #div1, #div2
     25         {
     26             height: 100px;
     27             width: 100px;
     28         }
     29     </style>
     30 </head>
     31 <body>
     32     <p>PREREQUSITE: Click the <button onclick="changeWidth();">Change Width</button> button.</p>
     33     <p>Test passes if the black box became larger but no other content on the page reflowed.</p>
     34     <div>Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text</div>
     35     <div id="div1"></div>
     36     <div>Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text Filler Text</div>
     37     <div id="div2"></div>
     38     <script type="text/javascript">
     39         function changeWidth()
     40         {
     41             document.getElementById('div1').style.outlineWidth = '30px';
     42         }
     43     </script>
     44 </body>
     45 </html>