mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
LibWeb: Allow infinitely long flex lines when sizing under max-content
If the flex container is being sized under a max-content main size constraint, there is effectively infinite space available for flex items. Thus, flex lines should be allowed to be infinitely long. This is a little awkward, because the spec doesn't mention specifics about how to resolve flexible lengths during intrninsic sizing. I've marked the spec deviations with big "AD-HOC" comments.
This commit is contained in:
parent
9c74f49b1d
commit
3f9cfa144c
Notes:
sideshowbarker
2024-07-17 06:00:02 +09:00
Author: https://github.com/awesomekling
Commit: 3f9cfa144c
Pull-request: https://github.com/SerenityOS/serenity/pull/19200
3 changed files with 45 additions and 2 deletions
|
@ -0,0 +1,12 @@
|
|||
<!doctype html><style>
|
||||
html { background: white; }
|
||||
.outer {
|
||||
width: max-content;
|
||||
padding: 10px;
|
||||
background: pink;
|
||||
}
|
||||
.inner {
|
||||
display: flex;
|
||||
background: orange;
|
||||
}
|
||||
</style><body class="outer"><div class="inner">this text should be all on one line
|
Loading…
Add table
Add a link
Reference in a new issue