wpt / css / css-text-decor / text-emphasis-punctuation-1.html

Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text-decor/text-emphasis-punctuation-1.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS text decoration test: emphasis marks and punctuation</title>
<link rel="match" href="text-emphasis-punctuation-1-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-text-decor/#text-emphasis-style-property">
<meta name="assert" content="emphasis marks are not drawn for punctuation (with a small set of exceptions)">

<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.emph { text-emphasis: filled circle; font: 25px/2 Ahem; }
</style>

<p>The punctuation should <b>not</b> have emphasis marks:</p>
<p class="emph">Abc (def) gh? Ijk. Lm, n-op! [Qrst…uv] wx/yz.</p>

/css/css-text-decor/text-emphasis-punctuation-1-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS text decoration test: emphasis marks and punctuation</title>

<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.ahem { font: 25px/2 Ahem; }
span { text-emphasis: filled circle; }
</style>

<p>The punctuation should <b>not</b> have emphasis marks:</p>
<p class="ahem"><span>Abc</span> (<span>def</span>) <span>gh</span>? <span>Ijk</span>.
<span>Lm</span>, <span>n</span>-<span>op</span>!
[<span>Qrst</span>…<span>uv</span>] <span>wx</span>/<span>yz</span>.</p>