From dc91bc44ac13e268173db8afe9ee7eb6cfbf73d1 Mon Sep 17 00:00:00 2001 From: Alison Maher Date: Fri, 12 Nov 2021 18:04:51 -0800 Subject: [PATCH] [FlexNG] Set MinSizeShouldEncompassIntrinsicSize SetMinBlockSizeShouldEncompassIntrinsicSize() on a flex item to allow the item to grow as a result of fragmentation. In order for this flag to have an effect on flex items inside a column flex container, we also had to SetIsFixedBlockSize() to false. This will be used to expand the flex lines if needed. Bug: 660611 Change-Id: I8890cc54262c14664706b9cb9efb141a453dceff Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3276791 Commit-Queue: Alison Maher Reviewed-by: Ian Kilpatrick Reviewed-by: Morten Stenshorne Cr-Commit-Position: refs/heads/main@{#941410} --- ...single-line-column-flex-fragmentation-007.html | 15 +++++++++++++++ ...single-line-column-flex-fragmentation-008.html | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 css/css-break/flexbox/single-line-column-flex-fragmentation-007.html create mode 100644 css/css-break/flexbox/single-line-column-flex-fragmentation-008.html diff --git a/css/css-break/flexbox/single-line-column-flex-fragmentation-007.html b/css/css-break/flexbox/single-line-column-flex-fragmentation-007.html new file mode 100644 index 00000000000000..4450dd06d3e4c6 --- /dev/null +++ b/css/css-break/flexbox/single-line-column-flex-fragmentation-007.html @@ -0,0 +1,15 @@ + + + Tests that a flex-item grows due to fragmentation. + + + +

Test passes if there is a filled green square and no red.

+
+
+
+
+
+
+
+
diff --git a/css/css-break/flexbox/single-line-column-flex-fragmentation-008.html b/css/css-break/flexbox/single-line-column-flex-fragmentation-008.html new file mode 100644 index 00000000000000..5c83abec7f16e9 --- /dev/null +++ b/css/css-break/flexbox/single-line-column-flex-fragmentation-008.html @@ -0,0 +1,15 @@ + + + Tests that a flex-item with a fixed block-size container grows due to fragmentation. + + + +

Test passes if there is a filled green square and no red.

+
+
+
+
+
+
+
+