mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
LibWeb: Draw floating replaced elements more correctly
Previously floating replaced elements were drawn incorrectly and also twice.
This commit is contained in:
parent
80b2c11c81
commit
5f1a146afd
Notes:
github-actions[bot]
2025-03-03 20:50:39 +00:00
Author: https://github.com/InvalidUsernameException
Commit: 5f1a146afd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3430
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/kalenikaliaksandr
3 changed files with 73 additions and 2 deletions
31
Tests/LibWeb/Ref/input/render-order-floating-replaced.html
Normal file
31
Tests/LibWeb/Ref/input/render-order-floating-replaced.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="match" href="../expected/render-order-floating-replaced-ref.html" />
|
||||
<style>
|
||||
.square {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.square {
|
||||
background: green;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.row { clear: both; }
|
||||
.row > :nth-child(2) { margin-left: -32px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="row">
|
||||
<img class="square" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQI12P4z8AAAAMBAQAY3Y2wAAAAAElFTkSuQmCC" />
|
||||
<div class="square"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="square"></div>
|
||||
<img class="square" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQI12P4z8AAAAMBAQAY3Y2wAAAAAElFTkSuQmCC" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue