trisquel-icecat/icecat/testing/web-platform/tests/css/css-pseudo/first-letter-punctuation-and-space.html

25 lines
840 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: ::first-letter formatting</title>
<link rel="author" title="Johannes Odland" href="mailto:johannes.odland@gmail.com">
<link rel="match" href="first-letter-punctuation-and-space-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo">
<meta name="assert" content="Test checks that punctuation, intervening space separators and letters still have proper ::first-letter styling.">
<style>
div {
font-size: 36px;
}
div::first-letter {
color: green;
}
</style>
</head>
<body>
<p>Test passes if the "T"s and preceding punctuation below are green.</p>
<div> Test</div>
<div>« Test</div>
<div>&#xab;&nbsp;Test</div>
</body>
</html>