tor-browser

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

text-underline-offset-nesting-manual.html (2145B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset="utf-8">
      5      <title>CSS Text Decoration Test: Offset on decorating element</title>
      6      <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property"/>
      7      <meta name="assert" content="text-underline-offsets affects all decorations originating from this element."/>
      8      <link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org"/>
      9      <style>
     10 .test {
     11 font-size: 32px;
     12 }
     13 
     14 .underline {
     15 text-decoration: underline;
     16 text-underline-position: from-font;
     17 }
     18 
     19 .offset_outer_9 {
     20 text-underline-offset: 90px;
     21 text-decoration-color: #ff3366;
     22 }
     23 .offset_outer_8 {
     24 text-underline-offset: 80px;
     25 text-decoration-color: #ff6633;
     26 }
     27 
     28 .offset_outer_7 {
     29 text-underline-offset: 70px;
     30 text-decoration-color: #FFCC33;
     31 }
     32 
     33 .offset_outer_6 {
     34 text-underline-offset: 60px;
     35 text-decoration-color: #33FF66;
     36 }
     37 
     38 .offset_outer_5 {
     39 text-underline-offset: 50px;
     40 text-decoration-color: #33FFCC;
     41 }
     42 
     43 .offset_outer_4 {
     44 text-underline-offset: 40px;
     45 text-decoration-color: #33CCFF;
     46 }
     47 
     48 .offset_outer_3 {
     49 text-underline-offset: 30px;
     50 text-decoration-color: #3366FF;
     51 }
     52 
     53 .offset_outer_2 {
     54 text-underline-offset: 20px;
     55 text-decoration-color: #6633FF;
     56 }
     57 
     58 .offset_outer_1 {
     59 text-underline-offset: 10px;
     60 text-decoration-color: #CC33FF;
     61 }
     62 </style>
     63    </head>
     64    <body>
     65      <p>Test passes if there is one more underline under each X, growing up in steps, with red being the furthest away
     66      and a single one, purple being the closest with 8 other underlines under it.</p>
     67      <div class="test">
     68        <span class="underline offset_outer_9">X<span class="underline offset_outer_8">X<span class="underline offset_outer_7">X<span class="underline offset_outer_6">X<span class="underline offset_outer_5">X<span class="underline offset_outer_4">X<span class="underline offset_outer_3">X<span class="underline offset_outer_2">X<span class="underline offset_outer_1">X</span></span>
     69                    </span>
     70                  </span>
     71                </span>
     72              </span>
     73            </span>
     74          </span>
     75        </span>
     76      </div>
     77    </div>
     78  </body>
     79 </html>