mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
The replaced element sizing code was comparing tentative used sizes min-width/min-height and max-width/max-height. For box-sizing: border-box, that mixes content-box and border-box measurements, which can clamp replaced-like elements incorrectly. This could make, for example search/text inputs with explicit height and padding render too short. Resolve min/max constraints with calculate_inner_width() and calculate_inner_height() before clamping so the comparison uses the same inner sizing space as the tentative replaced size. Fixes the sizing of the search bar on: https://tv.apple.com/se
12 lines
168 B
HTML
12 lines
168 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
input {
|
|
border: 2px solid;
|
|
padding: 6px 0;
|
|
font-size: 5px;
|
|
height: 28px;
|
|
min-width: 100px;
|
|
}
|
|
</style>
|
|
<input type="search">
|