tor-browser

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

text-decoration-inset-025.html (2075B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 
      4 <title>CSS Text Decoration 4: text-decoration-inset</title>
      5 
      6 <link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-inset-property">
      7 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
      8 
      9 <link rel="match" href="reference/text-decoration-inset-025-ref.html">
     10 
     11 <style>
     12 div > div {
     13  font: 20px/2 sans-serif;
     14  inline-size: fit-content;
     15  margin-bottom: 10px;
     16  border: 1px solid silver;
     17  color: silver;
     18  text-decoration: 3px blue overline;
     19  text-decoration-inset: -0.5em;
     20 }
     21 u {
     22  text-decoration: 3px green underline;
     23  text-decoration-inset: 2em;
     24 }
     25 .p1 {
     26  padding: 0 1em;
     27 }
     28 .m1 {
     29  margin: 0 1em;
     30 }
     31 .b1 {
     32  border: 1em solid transparent;
     33 }
     34 .p2 {
     35  padding: 0 0.5em;
     36 }
     37 .m2 {
     38  margin: 0 0.5em;
     39 }
     40 .b2 {
     41  border: 0.5em solid transparent;
     42 }
     43 </style>
     44 
     45 <div>
     46 <p>Reference case:</p>
     47 <div class=p1>
     48  <u>now testing text-decoration inset</u>
     49 </div>
     50 </div>
     51 
     52 <p>All the following lines should have the same shortened underline and extended overline:</p>
     53 
     54 <div style="columns: 2">
     55 
     56 <div>
     57  <u class=p1>now testing text-decoration inset</u>
     58 </div>
     59 
     60 <div>
     61  <u class=m1>now testing text-decoration inset</u>
     62 </div>
     63 
     64 <div>
     65  <u class=b1>now testing text-decoration inset</u>
     66 </div>
     67 
     68 <div>
     69  <u><span class=p1>now testing text-decoration inset</span></u>
     70 </div>
     71 
     72 <div>
     73  <u><span class=m1>now testing text-decoration inset</span></u>
     74 </div>
     75 
     76 <div>
     77  <u><span class=b1>now testing text-decoration inset</span></u>
     78 </div>
     79 
     80 <div>
     81  <u class=m2><span class=p2>now testing text-decoration inset</span></u>
     82 </div>
     83 
     84 <div>
     85  <u class=b2><span class=m2>now testing text-decoration inset</span></u>
     86 </div>
     87 
     88 <div>
     89  <u class=p2><span class=b2>now testing text-decoration inset</span></u>
     90 </div>
     91 
     92 <div>
     93  <u><span class=p2><span class=m2>now testing text-decoration inset</span></span></u>
     94 </div>
     95 
     96 <div>
     97  <u><span class=m2><span class=b2>now testing text-decoration inset</span></span></u>
     98 </div>
     99 
    100 <div>
    101  <u><span class=b2><span class=p2>now testing text-decoration inset</span></span></u>
    102 </div>
    103 
    104 </div>