-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Miss the cache when truncated by the fragmentation line.
If a fragment got truncated by the fragmentation line, and the fragmentation line has moved (relatively to the fragment), we cannot re-use it. Fragments may get truncated if there's trailing margin or border-spacing. Also need to rebaseline fast/block/basic/align-attribute-ltr.html which got incorrectly rebaselined in CL:3829558 (must have drowned in all the other rebaseline noise there), and this is what allowed the border-spacing part of the issue to enter our codebase "unnoticed". The margin part is an old bug, though. Bug: 1368054 Change-Id: I226907a3a2af8cbe44e7871c7ae8bd038bc0d2ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3917855 Reviewed-by: Ian Kilpatrick <[email protected]> Commit-Queue: Morten Stenshorne <[email protected]> Cr-Commit-Position: refs/heads/main@{#1051968}
- Loading branch information
1 parent
51db598
commit 2fa24e2
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
css/css-break/table/truncated-border-spacing-at-fragmentainer-end.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1368054"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div id="mc" style="columns:1; column-fill:auto; width:100px; height:60px; background:red;"> | ||
<div style="display:table; width:100%; border-spacing:40px; background:green;"> | ||
<div style="height:20px;"></div> | ||
</div> | ||
</div> | ||
<script> | ||
document.body.offsetTop; | ||
mc.style.height = "100px"; | ||
</script> |
14 changes: 14 additions & 0 deletions
14
css/css-break/truncated-margin-at-fragmentainer-end-001.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1368054"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div id="mc" style="columns:1; column-fill:auto; width:100px; height:60px; background:red;"> | ||
<div style="display:flow-root; background:green;"> | ||
<div style="margin-bottom:40px; height:60px;"></div> | ||
</div> | ||
</div> | ||
<script> | ||
document.body.offsetTop; | ||
mc.style.height = "100px"; | ||
</script> |
15 changes: 15 additions & 0 deletions
15
css/css-break/truncated-margin-at-fragmentainer-end-002.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]"> | ||
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1368054"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="columns:1; column-fill:auto; width:100px; height:100px; background:red;"> | ||
<div id="child" style="height:40px;"></div> | ||
<div style="display:flow-root; background:green;"> | ||
<div style="margin-bottom:40px; height:60px;"></div> | ||
</div> | ||
</div> | ||
<script> | ||
document.body.offsetTop; | ||
child.style.height = "0"; | ||
</script> |