gecko-dev/layout/reftests/first-letter/399941-2.html
Mats Palmgren f54caaaa16 Bug 1260366 - Include the punctuation classes Pd and Pc in ::first-letter because the CSS Pseudo-Elements spec says so. r=jfkthame
https://www.w3.org/TR/css-pseudo-4/#first-letter-pseudo
"Punctuation (i.e, characters that belong to the Punctuation (P*)
Unicode general category [UAX44]) that precedes or follows the first
typographic letter unit must also be included in the ::first-letter
pseudo-element."
2016-04-01 02:08:15 +02:00

20 lines
564 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Reference: Test case for bug 399941, revised in bug 1260366 due to spec changes</title>
<style type="text/css">
p:first-letter {
color: lime;
background-color: olive;
}
</style>
</head>
<body>
<!-- Punctuation in class Pc should be included: there is a first-letter here -->
<p>_I_, said the Fly,</p>
<!-- Punctuation in class Pd should be included: there is a first-letter here -->
<p>-I-, said the Fly,</p>
</body>
</html>