Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-text/hanging-punctuation/hanging-punctuation-last.html
<!DOCTYPE html> <meta charset="UTF-8"> <title>CSS Text: hanging-punctuation last</title> <link rel="help" href="https://drafts.csswg.org/css-text-3/#hanging-punctuation-property"> <link rel="match" href="reference/hanging-punctuation-last-ref.html"> <meta name="assert" content="hanging-punctuation: last causes closing punctuation at the end of the last line to hang into the margin. Punctuation followed by a non-zero-width border does not hang."> <link rel="stylesheet" href="/fonts/ahem.css"> <style> body { font-family: 'Ahem'; color:green } .hang { hanging-punctuation: last; margin:1em } </style> <div style="float:left;" class="hang">(Hang test)</div> <div style="clear:both"> <div class="hang" style="width:4em">No.<br>Yes.)</div> <div class="hang" style="text-align:justify; width:4em;">Yes <span>)</span></div> <div class="hang" style="text-align:justify; width:4em;">No. <span style="border-right:1em solid blue">)</span></div>
/css/css-text/hanging-punctuation/reference/hanging-punctuation-last-ref.html
<!DOCTYPE html> <meta charset="UTF-8"> <title>CSS Reference</title> <link rel="stylesheet" href="/fonts/ahem.css"> <style> body { font-family: 'Ahem'; color:green } .hang { margin:1em } </style> <div style="float:left;" class="hang">(Hang test)</div> <div style="clear:both"> <div class="hang" style="width:5em">No.<br>Yes.)</div> <div class="hang" style="text-align:justify; width:5em;">Yes <span>)</span></div> <div class="hang" style="text-align:justify; width:4em;">No. <span style="border-right:1em solid blue">)</span></div>