Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/hanging-punctuation/hanging-punctuation-first-and-last-together.html - WPT Dashboard Interop Dashboard
<!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>