Files
firefox/testing/web-platform/tests/css/css-flexbox/select-element-multiple-ref.html
Ian Kilpatrick ebf35301bf Bug 1975345 [wpt PR 53555] - [layout] Fix <select multiple> within a column flexbox., a=testonly
Automatic update from web-platform-tests
[layout] Fix <select multiple> within a column flexbox.

In: https://chromium-review.googlesource.com/c/chromium/src/+/6498560 we
call CalculateIntrinsicBlockSizeIgnoringChildren which assumes that we
wont touch any children as they may not have been laid out yet.

This was an incorrect assumption, specifically a "<select multiple>"
inspects its children querying their size to determine its default
intrinsic block-size. See "ListBoxItemBlockSize"

Not great!

Ideally we'd remove the code in ListBoxItemBlockSize, and add some
special logic within BlockLayoutAlgorithm to mitigate this, but that's a
larger change.

For now - just plumb a bool through "children_have_geometry" to indicate
if we are allowed to inspect a child's geometry.

Bug: 428005645
Change-Id: I7703436004612a1c64510be1554d4b49aa307777
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6701552
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: David Grogan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1481975}

--

wpt-commits: ff9ab9f0bde8342077f343044e9fd52b31ec4cab
wpt-pr: 53555
2025-07-07 10:10:28 +00:00

7 lines
130 B
HTML

<!DOCTYPE html>
<div style="width: 100px;">
<select multiple style="width: 100%;">
<option>test</option>
</select>
</div>