servo/tests/wpt/css-tests/css-backgrounds-3_dev/xhtml1print/background-image-first-letter.xht

29 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSS Test: background-image applicability to ::first-letter</title>
<link href="mailto:emalasky@adobe.com" rel="author" title="Ethan Malasky" />
<link href="http://www.w3.org/TR/css3-background/#placement" rel="help" />
<link href="http://www.w3.org/TR/css3-background/#the-background-image" rel="help" />
<link href="http://www.w3.org/TR/CSS21/colors.html#background-properties" rel="help" />
<link href="http://www.w3.org/TR/CSS21/selector.html#first-letter" rel="help" />
<link href="reference/background-image-first-letter-ref.xht" rel="match" />
<link href="http://fantasai.inkedblade.net/contact" rel="reviewer" title="Elika J. Etemad" />
<meta content="ahem image" name="flags" />
<meta content="background-image applicability to ::first-letter" name="assert" />
<style type="text/css">
#content {
color: transparent;
font: 100px Ahem;
}
#content::first-letter {
background-image: url("support/cat.png"); /* 98 w. by 99px h. */
background-repeat: no-repeat;
}
</style>
</head>
<body>
<p>Test passes if cat image is visible.</p>
<div id="content">X</div>
</body></html>