mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
LibWeb: Fix for absolutely positioned elements with specified height
Use inner height since the paintable adds padding back. Fixes #18842.
This commit is contained in:
parent
3e12d84f0f
commit
9a6a635e51
3 changed files with 55 additions and 5 deletions
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<head>
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
h1 {
|
||||
position: absolute;
|
||||
top: 12mm;
|
||||
left: 20mm;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
padding: 44px 0;
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Test</h1>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue