1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00
serenity/Tests/LibWeb/Layout/input/flex-item-vertical-padding-relative-to-flex-container-width.html
Andreas Kling 0ef07383e5 LibWeb: Fix bogus min/max-height for box-sizing:border-box flex items
When resolving these constraints to CSS pixel sizes, we have to resolve
padding-top and padding-bottom against the flex container's *width*,
not its height.
2023-03-10 13:38:34 +01:00

20 lines
333 B
HTML

<style>
* {
border: 1px solid black;
}
.flex-container {
display: flex;
width: 600px;
height: 10px;
}
.flex-item {
background: orange;
box-sizing: border-box;
min-height: 200px;
padding-top: 10%;
padding-bottom: 20%;
}
</style>
<body>
<div class="flex-container">
<div class="flex-item">foo</div>