tor-browser

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

line-break-anywhere-and-white-space-002.html (1472B)


      1 <!DOCTYPE html>
      2 <html lang=en>
      3 <meta charset="utf-8">
      4 <title>CSS Text Test: line-break: anywhere and the white-space property</title>
      5 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      6 <link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property">
      7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-nowrap">
      8 <link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://drafts.csswg.org/css-text-3/#line-break-property">
      9 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
     10 <link rel="match" href="reference/line-break-anywhere-004-ref.html">
     11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12 <meta name="flags" content="Ahem">
     13 <meta name="assert" content="'line-break: anywhere' can't prevent overflow under 'white-space: nowrap', because it line wrapping is not allowed. ">
     14 <style>
     15 div {
     16  position: relative;
     17  font: 10px / 1 Ahem;
     18 }
     19 .red {
     20  position: absolute;
     21  background: green;
     22  color: red;
     23  width: 100px;
     24  height: 100px;
     25  z-index: -1;
     26 }
     27 .test {
     28  color: green;
     29  width: 5ch;
     30  line-break: anywhere;
     31 
     32  white-space: nowrap;
     33 }
     34 </style>
     35 <body>
     36  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     37  <div class="red">XXXX XX</div>
     38  <div class="test">XXXX    XX</div>
     39 </body>