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-004.html (1620B)


      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-normal">
      8 <link rel="help" title="4.1.3. Phase II: Trimming and Positioning" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      9 <link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://drafts.csswg.org/css-text-3/#line-break-property">
     10 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
     11 <link rel="match" href="reference/line-break-anywhere-004-ref.html">
     12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13 <meta name="flags" content="Ahem">
     14 <meta name="assert" content="The line is wrapped ignoring the white space, which will be removed honoring 'white-space: normal'">
     15 <style>
     16 div {
     17  position: relative;
     18  font: 25px / 1 Ahem;
     19 }
     20 .red {
     21  position: absolute;
     22  background: green;
     23  color: red;
     24  width: 100px;
     25  height: 100px;
     26  z-index: -1;
     27 }
     28 .test {
     29  color: green;
     30  width: 4ch;
     31  line-break: anywhere;
     32 
     33  white-space: normal;
     34 }
     35 </style>
     36 <body>
     37  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     38  <div class="red">XXX<br>XX</div>
     39  <div class="test">XXX<span style="background: red"> </span>XX</div>
     40 </body>