Skip to content

Commit

Permalink
Bug 1861654 [wpt PR 42806] - Cannot skip style recalc for container i…
Browse files Browse the repository at this point in the history
…f there are whitespace changes., a=testonly

Automatic update from web-platform-tests
Cannot skip style recalc for container if there are whitespace changes. (#42806)

We cannot skip style recalc for a container query container if
WhitespaceChildrenMayChange() has been set. This flag may be set when a
DOM node is removed, and the subsequent style recalc is expected to take
care of it and clear it. It is too late to do anything about it when we
get to layout of the container query node, since the node cannot
reattach itself at that point.

Bug: 1494659
Change-Id: I8d150c56470259c80f9d8536c79c2aefeaf2b116
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4982289
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1216904}

Co-authored-by: Morten Stenshorne <mstensho@chromium.org>
--

wpt-commits: 8d8824fdb894a09489f103d8717b5d25b700c75a
wpt-pr: 42806
  • Loading branch information
chromium-wpt-export-bot authored and moz-wptsync-bot committed Nov 19, 2023
1 parent 2aa8c45 commit a988b04
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1494659">
<div id="container" style="container-type:inline-size;">
<div id="other"></div>
<div id="foo"></div>
</div>
<script>
document.body.offsetTop;
container.style.width = "100px";
other.style.color = "pink";
foo.remove();
</script>

0 comments on commit a988b04

Please sign in to comment.