aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-text-3_dev/xhtml1/text-align-start-002.xht
blob: d8160b48b72a76dd3e23f5e82c01b41f9efacfe1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head>
<meta charset="utf-8" />
<title>text-align: start, direction: ltr</title>
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida" />
<link href="https://drafts.csswg.org/css-text-3/#text-align-property" rel="help" />
<link href="reference/text-align-start-ref-002.xht" rel="match" />
<meta content="text-align:start aligns inline-level content to the start edge of the line box – ie. left when direction is horizontal, ltr." name="assert" />
<style type="text/css">
.test { text-align: start; direction: ltr; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange;  margin: 20px; width: 300px; color: orange; font: 24px/24px ahem; }
.ref { position: relative;  height: 24px; }
#rb1 { position: absolute; top: 0; left: 0; background-color: orange; width: 120px;  height: 24px; }
</style>
</head>
<body>
<div id="instructions">Test passes if the shading in both orange boxes looks the same.</div>
<div style="direction: rtl;">
<div class="test">XXXXX</div>
<div class="ref"><div id="rb1"></div></div>
</div>

</body></html>