Skip to content

Commit 09c926f

Browse files
mstenshochromium-wpt-export-bot
authored andcommitted
Web test for ignoring break-before:avoid if it's the best break.
This is already working (in LayoutNGBlockFragmentation (legacy block fragmentation, on the other hand, doesn't understand any of this and will break where the test expects, out of pure ignorance)), but I was working on some code, and discovered that we lacked coverage. Bug: 829028 Change-Id: Ice3dc7ee6a285f2901b3ddfefae6dfd510f7c12b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3144066 Reviewed-by: Ian Kilpatrick <[email protected]> Commit-Queue: Morten Stenshorne <[email protected]> Cr-Commit-Position: refs/heads/main@{#918908}
1 parent 2b0aed9 commit 09c926f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
3+
<link rel="help" href="https://www.w3.org/TR/css-break-3/#unforced-breaks">
4+
<meta name="assert" content="Prefer violating a later break-before:avoid instead of violating an earlier break-inside:avoid">
5+
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
6+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
7+
<div style="columns:2; column-gap:0; column-fill:auto; width:100px; height:100px; background:red;">
8+
<div style="break-inside:avoid;">
9+
<div style="contain:size; height:50px; background:green;"></div>
10+
<div style="contain:size; height:50px; background:green;"></div>
11+
</div>
12+
<div style="break-before:avoid; contain:size; height:100px; background:green;"></div>
13+
</div>

0 commit comments

Comments
 (0)