Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab

This commit is contained in:
James Graham
2015-03-27 09:18:12 +00:00
parent 1a81b18b9f
commit 2c9faf5363
91915 changed files with 5979820 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: 'vertical-align: text-bottom' - line-height</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" title="Section 10.8.1 Leading and half-leading">
<link rel="match" href="reference/vertical-align-117a-ref.htm">
<meta content="ahem" name="flags">
<meta content="For inline non-replaced elements (such as the span element in this testcase), the box used for vertical-alignment is the box whose height is the 'line-height' (containing the box's glyphs and the half-leading on each side). 'vertical-align: text-bottom' will align the bottom of such box with the bottom of the parent's content area and not with the bottom of the parent's box." name="assert">
<style type="text/css">
div
{
background-color: yellow;
/*
The sole purpose for such yellow background
is to help delimit and visually identify the
content area of the block container box.
*/
font: 2.5em/3.25 Ahem;
/*
equivalent to font: 40px/130px (with top-half-leading
and bottom-half-leading each equal to 45px) but
entirely font-size-relative and perfectly
text-size-scalable in all browsers
*/
}
span
{
color: blue;
margin: auto -1em;
vertical-align: text-bottom;
}
</style>
</head>
<body>
<p>Test passes if the blue stripe is vertically offset <strong>above the black stripes on both sides</strong>. The blue stripe must be clearly and entirely above the black stripes.</p>
<div>TTTT<span>MustBeAbove</span>TTTT</div>
</body>
</html>