tor-browser

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

overflow-wrap-anywhere-004.html (1142B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: overflow-wrap: anywhere</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-anywhere">
      6 <meta name="flags" content="ahem">
      7 <link rel="match" href="reference/overflow-wrap-break-word-001-ref.html">
      8 <meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: pre-wrap' property, that must prevent the word to be broken.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11 div {
     12  position: relative;
     13  font-size: 20px;
     14  font-family: Ahem;
     15  line-height: 1em;
     16 }
     17 .red {
     18  position: absolute;
     19  background: green;
     20  color: red;
     21  width: 100px;
     22  height: 100px;
     23  z-index: -1;
     24 }
     25 .test {
     26  color: green;
     27  width: 5ch;
     28 
     29  white-space: pre-wrap;
     30  overflow-wrap: anywhere;
     31 }
     32 </style>
     33 <body>
     34  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     35  <div class="red"><br>XXXXX</div>
     36  <div class="test"> XXXXX </div>
     37 </body>