wpt / css / css-text / hanging-punctuation / hanging-punctuation-first-and-last-together.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text/hanging-punctuation/hanging-punctuation-first-and-last-together.html

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Text: hanging-punctuation first and last together</title>
<link rel="help" href="https://drafts.csswg.org/css-text-3/#hanging-punctuation-property">
<link rel="match" href="reference/hanging-punctuation-first-and-last-together-ref.html">
<meta name="assert" content="hanging-punctuation: first last causes opening punctuation to hang at the start of the first line and closing punctuation to hang at the end of the last line.">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
    body { font-family: 'Ahem'; color:green }
    .hang { hanging-punctuation: first last; margin:1em; border:1px solid black }
</style>
<div style="float:left" class="hang">(Hang test)</div>
<div style="clear:both">
<div class="hang" style="width:10em; text-align:justify;">(This should hang.<br>(This should also hang.)</div>

/css/css-text/hanging-punctuation/reference/hanging-punctuation-first-and-last-together-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; border:1px solid black }
</style>
<div style="float:left" class="hang"><div style="margin: 0 -1em">(Hang test)</div></div>
<div style="clear:both">
    <div class="hang" style="width:10em; text-align:justify;"><span style="margin:0 -1em">(This should hang.<br>(This should also hang.)</span></div>