servo/tests/wpt/css-tests/css-writing-modes-3_dev/html/direction-vrl-004.htm

40 lines
No EOL
1.1 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: 'vertical-rl' and 'direction: ltr'</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/#logical-directions" title="6.2 Flow-relative Directions">
<link rel="match" href="reference/direction-vrl-004-ref.htm">
<meta content="ahem image" name="flags">
<meta content="This test checks that when a block box has 'direction' set to 'ltr' in a vertical writing-mode, then inlines boxes are aligned from line-left to line-right." name="assert">
<style type="text/css">
div
{
color: green;
font: 100px/1 Ahem; /* computes to 100px/100px */
height: 300px;
width: 200px;
}
div
{
background: red url("support/right-top-200x300.png");
direction: ltr;
writing-mode: vertical-rl;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div>T</div>
</body>
</html>