Skip to content

Commit 1226287

Browse files
mstenshopull[bot]
authored andcommitted
Flow threads cannot be subtree layout roots.
LayoutTableCell::UpdateStyleWritingModeFromRow() has special code that prevents a table cell from becoming a writing-mode root (because the legacy table implementation cannot handle that). As a workaround it attempts to set all the children of the table cell as writing mode roots. This entire mechanism is somewhat broken (the computed value of writing-mode on table cells is modified somewhere (probably the style adjuster), so that if we dynamically insert block children later, they will inherit the incorrect writing mode), so attempting to fix anything at all there seems risky. Instead, just refuse to relayout a flow thread as a subtree root, just like we already do for table parts (including table cells) and grid items. Bug: 1174687 Change-Id: I1df68512965f8f38d56339d8ca6add0c00b76f04 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3468547 Reviewed-by: Philip Rogers <[email protected]> Commit-Queue: Morten Stenshorne <[email protected]> Cr-Commit-Position: refs/heads/main@{#972847}
1 parent dbb8c9c commit 1226287

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
3+
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1174687">
4+
<div style="display:table-cell; writing-mode:vertical-lr; columns:2;">
5+
<span id="surprise" style="display:none;">x</span>
6+
</div>
7+
<script>
8+
document.body.offsetTop;
9+
surprise.style.display = "inline";
10+
</script>

0 commit comments

Comments
 (0)