Skip to content

Commit

Permalink
[flex] Clamp available sizes to zero.
Browse files Browse the repository at this point in the history
Scrollbars may be present on a box. When subtracting
BorderScrollbarPadding we almost always need to clamp to zero, as the
border-box size - bsp may be negative.

Bug: 1274476
Change-Id: I55322f5c5bc5a5bbe9fefc1eb1403677044b9443
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307128
Reviewed-by: Alison Maher <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/main@{#946104}
  • Loading branch information
bfgeek authored and chromium-wpt-export-bot committed Nov 29, 2021
1 parent 5fc81f8 commit 9811acc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/css-flexbox/negative-available-size-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1274476">
<div style="display: flex;">
<div style="display: flex; height: 0; overflow-x: scroll;">a

0 comments on commit 9811acc

Please sign in to comment.