blob: dcf1bc6902ff0f189b1c2a8969397f3e9dd2a13e [file] [log] [blame]
<!DOCTYPE html>
<title>shape-outside on floats with a different writing mode in the float and the container</title>
<style>
.container {
font: 20px/1 Ahem;
color: orange;
width: 160px;
height: 20px;
}
.float {
-webkit-writing-mode: vertical-lr;
-webkit-shape-outside: border-box;
height: 20px;
width: 20px;
margin: 0px 20px;
border-width: 0px 20px;
border-style: solid;
border-color: blue;
padding: 0px 20px;
background-color: blue;
}
</style>
<body>
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=122243">Bug 128631</a> - [CSS Shapes] shape-outside does not properly handle different writing modes</p>
<p>You should see an orange square touching the right side of a blue rectangle. There should be no blue to the right of the orange square.</p>
<div class="container">
<div class="float" style="float: left;"></div>
X
</div>
<p>You should see an orange square touching the left side of a blue rectangle. There should be no blue to the left of the orange square.</p>
<div class="container" style="text-align: right">
<div class="float" style="float: right;"></div>
X
</div>
</body>