diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-26 19:08:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-27 05:47:54 +0200 |
commit | 8ba7bd1b67f7d028205b541cec4856e7aecc2907 (patch) | |
tree | 9d1e9418c1b887230381979aae5022b49ef3423f /Tests/LibWeb/Layout/input | |
parent | 1bb4e5c4288dec5116f3938e5eb7816bba181759 (diff) | |
download | serenity-8ba7bd1b67f7d028205b541cec4856e7aecc2907.zip |
LibWeb: Accept fit-content as a value for min-width and max-width
This starts working immediately in BFC thanks to calculate_inner_width
being used for width constraints. :^)
Diffstat (limited to 'Tests/LibWeb/Layout/input')
-rw-r--r-- | Tests/LibWeb/Layout/input/block-and-inline/block-with-fit-content-width-constraints.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/block-and-inline/block-with-fit-content-width-constraints.html b/Tests/LibWeb/Layout/input/block-and-inline/block-with-fit-content-width-constraints.html new file mode 100644 index 0000000000..3bd245414c --- /dev/null +++ b/Tests/LibWeb/Layout/input/block-and-inline/block-with-fit-content-width-constraints.html @@ -0,0 +1,13 @@ +<!doctype html><style> +* { border: 1px solid black; } +.box { + background: orange; + min-width: fit-content; + width: 10px; +} +.box2 { + background: pink; + max-width: fit-content; + width: 1000px; +} +</style><div class="box">Well hello friends</div><div class="box2">Well hello friends</div> |