hanging-punctuation-inline-bound-001.html (1110B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Text Test: allowed ending hanging-punctuation affect inline box boundary</title> 6 7 <!-- 8 9 Issue 4222: [css-text-3] hanging-punctuation effect on inline/block bounds 10 https://github.com/w3c/csswg-drafts/issues/4222 11 12 --> 13 14 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 15 <link rel="help" href="https://www.w3.org/TR/css-text-3/#hanging"> 16 <link rel="match" href="reference/hanging-punctuation-inline-bound-001-ref.html"> 17 18 <meta content="This test checks that background of inline boxes includes hanging punctuations and text-selecting (or highlighting) inline boxes will include hanging punctuations." name="assert"> 19 20 <style> 21 div 22 { 23 font-family: monospace; 24 font-size: 60px; 25 line-height: 1.5em; /* computes to 90px */ 26 hanging-punctuation: allow-end; 27 width: 245px; 28 } 29 30 span 31 { 32 background-color: lime; 33 border: black solid 3px; 34 } 35 </style> 36 37 <body lang="ja"> 38 39 <div><span>まだよくています。しかし特</span></div>