tor-browser

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

line-break-anywhere-004.html (1503B)


      1 <!DOCTYPE html>
      2 <html lang=en>
      3 <meta charset="utf-8">
      4 <title>CSS Text Test: line-break: anywhere</title>
      5 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      6 <link rel="help" title="5.2. Breaking Rules for Letters: the word-break property" href="https://drafts.csswg.org/css-text-3/#word-break-property">
      7 <link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://www.w3.org/TR/css-text-3/#propdef-line-break">
      8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
      9 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-keep-all">
     10 <link rel="match" href="reference/line-break-anywhere-004-ref.html">
     11 <meta name="assert" content="The second word is broken, despite the word-break: keep-all, because line-break: anywhere disregarde any prohibition against line breaks mandate by word-break.">
     12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13 <style>
     14 div {
     15  position: relative;
     16  font-size: 25px;
     17  font-family: Ahem;
     18  line-height: 1em;
     19 }
     20 .red {
     21  position: absolute;
     22  width: 100px;
     23  height: 100px;
     24  background: green;
     25  color: red;
     26  z-index: -1;
     27 }
     28 .test {
     29  color: green;
     30  width: 4ch;
     31  line-height: 1;
     32  word-break: keep-all;
     33  line-break: anywhere;
     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">XX X<br>XX</div>
     39  <div class="test">XX XXX</div>
     40 </body>