mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Correct the calculation for right float intrusion
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.
This commit is contained in:
Notes:
github-actions[bot]
2025-05-27 15:33:02 +00:00
Author: https://github.com/rubenqwertyuiop Commit: https://github.com/LadybirdBrowser/ladybird/commit/3263b629c64 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4869 Reviewed-by: https://github.com/gmta ✅
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<style>
|
||||
.container {
|
||||
width: 400px;
|
||||
height: 50px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.left {
|
||||
float: left;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.right {
|
||||
float: right;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.w320 { width: 320px; }
|
||||
.w80 { width: 80px; }
|
||||
|
||||
.red { background: red; }
|
||||
.blue { background: blue; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="right w320 red"></div>
|
||||
<div class="left w80 blue"></div>
|
||||
</div>
|
||||
</body>
|
||||
Reference in New Issue
Block a user