Files
servo/tests/wpt/css-tests/css-fonts-3_dev/xhtml1print/font-size-adjust-001.xht

25 lines
1.1 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><meta charset="utf-8" />
<title>CSS Fonts Test: font-size-adjust - greater than aspect value of font</title>
<link href="http://www.intel.com/" rel="author" title="Intel" />
<link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan" />
<link href="http://www.w3.org/TR/css-fonts-3/#font-size-adjust-prop" rel="help" title="3.6 Relative sizing: the font-size-adjust property" />
<meta content="Ahem" name="flags" />
<meta content="Test checks that the actual font size is greater than the specified size when the value of font-size-adjust
is greater than the aspect value of font" name="assert" />
<style>
div {
font-family: Ahem;
font-size: 40px;
}
#test {
color: blue;
font-size-adjust: 0.9;
}
</style>
</head><body>
<p>Test passes if the size of blue rectangle is greater than the black rectangle.</p>
<div>FillerText</div>
<div id="test">FillerText</div>
</body></html>