servo/tests/wpt/css-tests/css-backgrounds-3_dev/html4/background-image-first-letter.htm

29 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html>
<html><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.htm" 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>