mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
We used to subtract the maximum right margin of any containing box, but we want to subtract the entire right margin instead. This yielded incorrect intrusions for right floats not placed in the root.
23 lines
395 B
HTML
23 lines
395 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.w500 { width: 500px; }
|
|
.w400 { width: 400px; }
|
|
.w220 { width: 220px; }
|
|
.w200 { width: 200px; }
|
|
.right {
|
|
height: 20px;
|
|
float: right;
|
|
}
|
|
.blue { background: blue; }
|
|
.red { background: red; }
|
|
</style>
|
|
<body>
|
|
<div class="w500">
|
|
<div class="w400">
|
|
<div class="w200 right red"></div>
|
|
</div>
|
|
<div class="w220 right blue"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|