tor-browser

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

overflow-wrap-anywhere-inline-003.tentative.html (1161B)


      1 <!DOCTYPE html>
      2 <html lang=en>
      3 <meta charset="utf-8">
      4 <title>overlfow-wrap: anywhere on inline element</title>
      5 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      6 <link rel="help" title="5.5. Overflow Wrapping: the overflow-wrap/word-wrap property " href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
      7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
      8 <meta name="flags" content="Ahem">
      9 <link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
     10 <meta name="assert" content="'overflow-wrap: anywhere' allows to break before the first character of the inline-block it applies to">
     11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12 <style>
     13 div, span {
     14    font: 50px / 1 Ahem;
     15    color: green;
     16 }
     17 .fail {
     18    position: absolute;
     19    color: red;
     20    z-index: -1;
     21 }
     22 .testdiv {
     23    width: 2ch;
     24 }
     25 .test {
     26    overflow-wrap: anywhere;
     27 }
     28 </style>
     29 
     30 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     31 <div class="fail">XX<br>XX</div>
     32 <div class="testdiv">XX<span class="test">XX</span></div>