mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 09:22:30 +00:00
Instead of directly invoking `to_px()`, `calculate_min_content_contribution()` needs to use `calculate_inner_width()` and `calculate_inner_height()`, which are aware of how to correctly handle `min-content` and `max-content` values. Fixes https://github.com/LadybirdBrowser/ladybird/issues/3469
17 lines
No EOL
360 B
HTML
17 lines
No EOL
360 B
HTML
<!doctype html><style>
|
|
* {
|
|
outline: 1px solid black;
|
|
}
|
|
body {
|
|
display: grid;
|
|
grid-template-columns: min-content;
|
|
}
|
|
.main {
|
|
display: flex;
|
|
margin: 0px auto;
|
|
width: min-content;
|
|
}
|
|
.player {
|
|
width: 100px;
|
|
}
|
|
</style><body><div class="main"><div class="player">whf |