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 <mstenshochromium.org>
Reviewed-by: Rune Lillesveen <futharkchromium.org>
Cr-Commit-Position: refs/heads/main{#1216904}

Co-authored-by: Morten Stenshorne <mstenshochromium.org>
--

wpt-commits: 8d8824fdb894a09489f103d8717b5d25b700c75a
wpt-pr: 42806

UltraBlame original commit: a56ee0540725c042e2bbd6cacd53bd158b48d311
  • Loading branch information
marco-c committed Nov 16, 2023
1 parent d0d4871 commit 9c4e56c
Showing 1 changed file with 149 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<
!
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 9c4e56c

Please sign in to comment.