From a286838594b92c18e5a5da645233a8f4daba5e88 Mon Sep 17 00:00:00 2001 From: Morten Stenshorne Date: Thu, 17 Feb 2022 00:48:59 -0800 Subject: [PATCH] Remove DCHECK for invariant fragment inline-size. Even if variable fragmentainer inline-size isn't yet possible (it will, though, once we add support for named pages for printing), a node may still generate fragments with variable inline-size, thanks to floats. Remove the DCHECK. We already handle this correctly on the NG side. For the legacy side, there isn't much we can do. Bug: 1295667 Change-Id: I70428db1cae1368b34055c4c3b7f62ce3d23a2c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3468474 Reviewed-by: Ian Kilpatrick Commit-Queue: Morten Stenshorne Cr-Commit-Position: refs/heads/main@{#972340} --- ...d-autowidth-fc-root-beside-floats-ref.html | 30 +++++++++++++++++++ ...ented-autowidth-fc-root-beside-floats.html | 11 +++++++ 2 files changed, 41 insertions(+) create mode 100644 css/css-break/fragmented-autowidth-fc-root-beside-floats-ref.html create mode 100644 css/css-break/fragmented-autowidth-fc-root-beside-floats.html diff --git a/css/css-break/fragmented-autowidth-fc-root-beside-floats-ref.html b/css/css-break/fragmented-autowidth-fc-root-beside-floats-ref.html new file mode 100644 index 00000000000000..5effc82452da07 --- /dev/null +++ b/css/css-break/fragmented-autowidth-fc-root-beside-floats-ref.html @@ -0,0 +1,30 @@ + + + +

There should be (from left to right) a hotpink square, a thin hotpink + rectangle, then a wider hotpink rectangle.

+
+
+
+
+
+
+
+
+
+
+
diff --git a/css/css-break/fragmented-autowidth-fc-root-beside-floats.html b/css/css-break/fragmented-autowidth-fc-root-beside-floats.html new file mode 100644 index 00000000000000..348019aaf0954c --- /dev/null +++ b/css/css-break/fragmented-autowidth-fc-root-beside-floats.html @@ -0,0 +1,11 @@ + + + + +

There should be (from left to right) a hotpink square, a thin hotpink + rectangle, then a wider hotpink rectangle.

+
+
+
+
+