Files
firefox/testing/web-platform/tests/css/CSS2/linebox/needs-layout-transform.html
T
Koji Ishii 1c848771e2 Bug 1650739 [wpt PR 24453] - [FragmentItem] Limit reusing cached lines only when top-level child is clean, a=testonly
Automatic update from web-platform-tests
[FragmentItem] Limit reusing cached lines only when top-level child is clean

This patch simplifies |DirtyLinesFromNeedsLayout| to check
|NeedsLayout| of top-level children only.

The previous code tried to reuse more lines, e.g.:
  <div><span>many lines of text</span></div>
Most lines are reusable when appending to the end of "text".
But supporting this case complicates the logic, especially
when culled inline is involved.

The new logic can't reuse lines in the above case, but still
can reuse liens if the `<span>` does not exist, and should
cover most common cases.

Bug: 1102083
Change-Id: I4f76e154b834c8c00e5ce04ab251c4f1fcdabab0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282821
Reviewed-by: Yoshifumi Inoue <[email protected]>
Commit-Queue: Yoshifumi Inoue <[email protected]>
Commit-Queue: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/master@{#785345}

--

wpt-commits: eae9c1b62560eedbccc8efa3a1f6b6ce1ba97b30
wpt-pr: 24453
2020-07-10 10:38:02 +00:00

17 lines
597 B
HTML

<!doctype html>
<title>Reusing cached lines multiple times should not crash</title>
<link rel="author" href="mailto:[email protected]">
<link rel="help" href="https://crbug.com/1102083">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<a><object id="target"><b></b></object><br></a>
<script>
test(() => {
const target = document.getElementById('target');
target.style.setProperty('transition-delay', '9999s');
document.body.offsetWidth;
target.style.transform = 'scale(1)';
document.body.offsetHeight;
}, 'No crash');
</script>