mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
LibWeb: Account for x-axis in static position for inline items
..and delay static position calculation in IFC until trailing whitespace are removed, because otherwise it's not possible to correctly calculate x offset.
This commit is contained in:
parent
19afc5b11b
commit
91b2cd7d31
Notes:
github-actions[bot]
2024-09-21 18:11:42 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 91b2cd7d31
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1475
4 changed files with 69 additions and 2 deletions
25
Tests/LibWeb/Layout/input/grid/inline-abspos-item.html
Normal file
25
Tests/LibWeb/Layout/input/grid/inline-abspos-item.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!-- Reduced from https://wpt.live/css/css-grid/abspos/positioned-grid-descendants-001.html -->
|
||||
<!DOCTYPE html>
|
||||
<style>
|
||||
.grid {
|
||||
display: grid;
|
||||
grid: 150px 100px/200px 300px;
|
||||
margin: 1px 2px 3px 4px;
|
||||
padding-top: 100px;
|
||||
border-width: 9px 3px 12px 6px;
|
||||
border-style: solid;
|
||||
width: 550px;
|
||||
height: 400px;
|
||||
position: relative;
|
||||
}
|
||||
.abspos {
|
||||
position: absolute;
|
||||
display: inline;
|
||||
}
|
||||
</style>
|
||||
<div class="grid">
|
||||
<div style="grid-area: 1/1">
|
||||
X<br />XX
|
||||
<div class="abspos" style="grid-area: auto/auto/1/1; inset: auto">XX</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue