https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bfcd8e9d5a96b85c544123e76ba6c9131aedab9d authored by Darren Shen on 26 March 2018, 01:54:20 UTC
[css-typed-om] Support font properties.
Tip revision: bfcd8e9
text-align-end-002.html
<!DOCTYPE html>
<html  lang="en" >
<head>
<meta charset="utf-8">
<title>text-align: end, direction: ltr</title>
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
<link rel='help' href='https://drafts.csswg.org/css-text-3/#text-align-property'>
<link rel='match' href='reference/text-align-end-ref-002.html'>
<meta name="assert" content="text-align:end aligns inline-level content to the end edge of the line box – ie. right when direction is horizontal, ltr.">
<style type='text/css'>
.test { text-align: end; 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; right: 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>
back to top