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,76 @@
<!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 http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CSS Writing Modes Test: margin percentage and 'vertical-lr'</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#dimension-mapping" title="7.2 Dimensional Mapping" />
<link rel="match" href="reference/margin-vrl-002-ref.xht" />
<meta content="image" name="flags" />
<meta content="This test checks that percentages on the margin are calculated with respect to the width of the containing block if the 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert" />
<style type="text/css"><![CDATA[
div.outer
{
background-color: blue;
border: blue solid 3px;
width: 200px;
}
hr
{
background-color: transparent;
border: transparent none 0px;
height: 3px;
margin: 0.5em auto;
}
div.inner
{
background-color: yellow;
height: 50px; /* necessary, otherwise div.inner blocks must grow as tall as the height of viewport */
width: 50px;
}
div.foo
{
margin-bottom: 2.5%;
margin-left: 50%;
margin-right: 25%;
margin-top: 10%;
writing-mode: vertical-lr;
}
div.bar
{
margin-bottom: 10%;
margin-left: 25%;
margin-right: 50%;
margin-top: 2.5%;
writing-mode: vertical-lr;
}
div#reference
{
margin-top: 1em;
}
]]></style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> blue rectangles, each with 2 small yellow squares: the layout must be identical.</p>
<div class="outer">
<div class="inner foo"></div>
<hr />
<div class="inner bar"></div>
</div>
<div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" height="165" alt="Image download support must be enabled" /></div>
</body>
</html>