From 408501c17c4092423190eecca2e315546d8a6fc7 Mon Sep 17 00:00:00 2001 From: Koji Ishii Date: Mon, 20 Mar 2023 18:04:23 +0000 Subject: [PATCH] Bug 1820866 [wpt PR 38857] - [text-balance] Disable line cache if `text-wrap: balance`, a=testonly Automatic update from web-platform-tests [text-balance] Disable line cache if `text-wrap: balance` When parts of inline formatting context was changed, we try to reuse existing fragments for lines above the change. When `text-wrap: balance`, this should not apply, because lines above the change may also be affected. This patch disables the line cache in such case. Fixed: 1421423 Change-Id: Ib4bb2b65838290940e713de6b09d725c7bb2931e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4314764 Reviewed-by: Ian Kilpatrick Commit-Queue: Ian Kilpatrick Auto-Submit: Koji Ishii Cr-Commit-Position: refs/heads/main@{#1114150} -- wpt-commits: d4bad531093495a7417f332b5f2b297e0baa6b4d wpt-pr: 38857 --- .../text-wrap-balance-dynamic-001-ref.html | 16 ++++++++++++++ .../text-wrap-balance-dynamic-001.html | 21 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-dynamic-001-ref.html create mode 100644 testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-dynamic-001.html diff --git a/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-dynamic-001-ref.html b/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-dynamic-001-ref.html new file mode 100644 index 000000000000..43202e4d97f0 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/reference/text-wrap-balance-dynamic-001-ref.html @@ -0,0 +1,16 @@ + + +
+ 123 567 901 345 789 + 123 567 901 345 789 + 123 567 901 345 789 + 999 +
diff --git a/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-dynamic-001.html b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-dynamic-001.html new file mode 100644 index 000000000000..8c7d27d1a347 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-dynamic-001.html @@ -0,0 +1,21 @@ + + + + +
+ 123 567 901 345 789 + 123 567 901 345 789 + 123 567 901 345 789 +
+