blob: 056ad6abfe30bb005b5d6de162aa0bca8d609bf6 [file] [log] [blame]
<!DOCTYPE html>
<!--
| An element gets updated when its "dir" attribute changes.
-->
<html>
<head>
<style>
body {
margin: 0px;
font-family: Roboto;
font-size: 18px;
}
.light-blue {
background-color: #03A9F4;
}
</style>
<script>
if (window.testRunner) {
window.testRunner.waitUntilDone();
}
window.onload = function() {
if (window.testRunner) {
window.testRunner.DoNonMeasuredLayout();
}
var child = document.getElementById('node');
child.dir = "rtl";
if (window.testRunner) {
window.testRunner.notifyDone();
}
}
</script>
</head>
<body>
<span class="light-blue">X,<span id="node">Y,</span></span><span>Z,</span>
</body>
</html>