mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<title>CSS Test: 'underline' decoration painting order and descender</title>
|
|
<style type="text/css">
|
|
@page { font: italic 8pt sans-serif; color: gray;
|
|
margin: 7%;
|
|
counter-increment: page;
|
|
@top-left { content: "CSS 2.1 Conformance Test Suite"; }
|
|
@top-right { content: "Test painting-order-underline-001"; }
|
|
@bottom-right { content: counter(page); }
|
|
}
|
|
</style>
|
|
|
|
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"/>
|
|
<link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order" title="E.2 Painting order"/>
|
|
<link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/text.html#lining-striking-props" title="16.3.1 Underlining, overlining, striking, and blinking: the 'text-decoration' property"/>
|
|
<link rel="match" href="reference/painting-order-underline-001-ref.xht"/>
|
|
|
|
<meta content="ahem" name="flags"/>
|
|
<meta content="This test checks that underlining painting is done before glyphs are painted; therefore, if the underlining crosses the descenders (glyphs like 'g', 'j', 'p', 'q', 'y' have a descender), then the descender part must overlap the underline." name="assert"/>
|
|
|
|
<style type="text/css"><![CDATA[
|
|
div
|
|
{
|
|
color: red;
|
|
font: 12.5em/1 Ahem; /* computes to 200px/200px */
|
|
text-decoration: underline;
|
|
}
|
|
|
|
span
|
|
{
|
|
color: green;
|
|
}
|
|
]]></style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<p>Test passes if there is a thick green bar and <strong>no red</strong>.</p>
|
|
|
|
<div><span>pp</span></div>
|
|
|
|
</body>
|
|
</html> |