<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>text-align: end, pre, dir=auto on surrounding block</title>
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
<style type="text/css">
.test, .ref { border: 1px solid orange;  margin: 20px; width: 290px; color: orange; font: 24px/24px ahem; }
.ref { position: relative;  height: 48px; }
#rb1 { position: absolute; top: 0; right: 0; background-color: orange; width: 72px;  height: 48px; }
</style>
</head>
<body>
<div id="instructions">Test passes if shading in both orange boxes is identical.</div>
<div class="ref"><div id="rb1"></div></div>
<div class="ref"><div id="rb1"></div></div>

</body></html>