Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/initial-letter/initial-letter-sunk-initial.html?class= - WPT Dashboard Interop Dashboard
- /css/css-inline/initial-letter/initial-letter-sunk-initial.html?class=no-ascent - WPT Dashboard Interop Dashboard
- /css/css-inline/initial-letter/initial-letter-sunk-initial.html?class=no-descent - WPT Dashboard Interop Dashboard
- /css/css-inline/initial-letter/initial-letter-sunk-initial.html?class=rtl - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Tests initial letter sunken initial</title>
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" >
<link rel="match" href="initial-letter-sunk-initial-ref.html">
<script src="resources/initial-letter-variants.js"></script>
<meta name="variant" content="?class=">
<meta name="variant" content="?class=no-ascent">
<meta name="variant" content="?class=no-descent">
<meta name="variant" content="?class=rtl">
<style>
.sample {
border: solid 1px green;
font-family: Ahem;
font-size: 20px;
line-height: 24px;
width: 230px;
}
.initial-letter::first-letter {
initial-letter: 3 2;
color: lime;
font-size: 100px; /* should be ignored in rendering */
line-height: 50px; /* should be ignored in rendering */
}
.rtl {
direction: rtl;
}
</style>
</head>
<body>
<div class="sample initial-letter">
Abc<br>def<br>ghi<br>jkl<br>mno<br>
</div>
</body>
</html>