serenity/Tests/LibWeb/Layout/input/height-of-absolute-position-box-with-padding.html
Andi Gallo 9a6a635e51 LibWeb: Fix for absolutely positioned elements with specified height
Use inner height since the paintable adds padding back.

Fixes #18842.
2023-05-16 14:34:53 +02:00

27 lines
No EOL
358 B
HTML

<!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>