Skip to content

Commit

Permalink
Bug 1609733 [wpt PR 21222] - [IntersectionObserver] Allow Document ar…
Browse files Browse the repository at this point in the history
…gument to constructor, a=testonly

Automatic update from web-platform-tests
[IntersectionObserver] Allow Document argument to constructor

This implements a behavioral change as described in:

w3c/IntersectionObserver#372

If the 'root' argument to the IntersectionObserver constructor is a
Document, then the observer will clip to the Document's root
scroller. For the top Document, this is the same behavior as the
implicit root. For an iframe Document, this is new behavior which is
unobtainable by other means.

BUG=1015183

Change-Id: I234bfce28ab954bb15b8d157bc22ee2d2469d5e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003750
Reviewed-by: Chris Harrelson <chrishtrchromium.org>
Reviewed-by: vmpstr <vmpstrchromium.org>
Commit-Queue: Stefan Zager <szagerchromium.org>
Cr-Commit-Position: refs/heads/master{#734268}

--

wpt-commits: aebf5e72a429c448637c388512bcadd4d4e3fa65
wpt-pr: 21222

UltraBlame original commit: ec3f916509c9a7ac7e2d170db1a1d1e6ac027d55
  • Loading branch information
marco-c committed Jan 28, 2020
1 parent 4dc1992 commit 0b9c4f1
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 26 deletions.
239 changes: 239 additions & 0 deletions testing/web-platform/tests/css/css-flexbox/percentage-heights-010.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
<
!
DOCTYPE
html
>
<
title
>
A
height
:
100
%
descendant
should
trigger
a
relayout
when
stretching
.
<
/
title
>
<
link
rel
=
"
help
"
href
=
"
https
:
/
/
drafts
.
csswg
.
org
/
css
-
flexbox
-
1
/
#
definite
-
sizes
"
/
>
<
link
rel
=
"
help
"
href
=
"
https
:
/
/
bugs
.
chromium
.
org
/
p
/
chromium
/
issues
/
detail
?
id
=
1043071
"
/
>
<
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
=
"
display
:
flex
;
width
:
100px
;
"
>
<
div
style
=
"
display
:
flex
;
flex
-
direction
:
column
;
flex
:
1
;
min
-
height
:
100px
;
"
>
<
div
style
=
"
flex
:
1
;
background
:
red
;
"
>
<
div
style
=
"
height
:
100
%
;
background
-
color
:
green
;
"
>
<
/
div
>
<
/
div
>
<
/
div
>
<
/
div
>
Original file line number Diff line number Diff line change
Expand Up @@ -205,27 +205,6 @@
"
)
;
root
=
iframe
.
contentDocument
.
scrollingElement
;
assert_true
(
!
!
root
"
Root
element
exists
.
"
)
;
target
=
iframe
Expand Down Expand Up @@ -275,7 +254,9 @@
{
root
:
root
iframe
.
contentDocument
}
)
;
Expand Down Expand Up @@ -333,10 +314,6 @@
is
the
document
'
s
scrolling
element
.
"
)
Expand Down

0 comments on commit 0b9c4f1

Please sign in to comment.