mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
LibWeb: Fix absolute positioning issues
Make sure the insets and margins calculated according to the spec are not later ignored and ad-hoc recomputed in layout_absolutely_positioned_element. Use the static position calculation in a couple of places where the spec (and comment) was indicating it should be used. Fixes #19362
This commit is contained in:
parent
61fe7c230f
commit
fd37ad3a84
8 changed files with 134 additions and 134 deletions
|
@ -0,0 +1,27 @@
|
|||
<style>
|
||||
* { border: 1px solid black; }
|
||||
div {
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
.only-t-l {
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
background-color: red;
|
||||
}
|
||||
.only-mt-ml {
|
||||
margin: 5px;
|
||||
background-color: orange;
|
||||
}
|
||||
.both {
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
margin: 5px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="only-t-l"></div>
|
||||
<div class="only-mt-ml"></div>
|
||||
<div class="both"></div>
|
Loading…
Add table
Add a link
Reference in a new issue