servo/tests/wpt/css-tests/css-writing-modes-3_dev/html/height-auto-non-replaced-block-vrl-004.htm

47 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: 'height: auto' - non-replaced block in orthogonal flow ('vertical-rl')</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/#orthogonal-auto" title="7.3.1 Auto-sizing in Orthogonal Flows">
<meta content="scroll" name="flags">
<meta content="This test checks that the initial containing block's height (which is the size of viewport height) is used for determination of a block's measure (inline-size) in orthogonal flow when such measure is 'auto'." name="assert">
<style type="text/css">
body
{
margin-bottom: 0px;
margin-top: 1px;
}
div
{
color: white;
height: auto;
writing-mode: vertical-rl;
}
/*
'height : auto'
must be solved as height of initial containing block which is the height of the viewport
*/
p
{
position: absolute;
}
</style>
</head>
<body>
<p>Test passes if there is a vertical scrollbar.</p>
<div>x</div>
</body>
</html>