fune/testing/web-platform/tests/css/css-overflow/reference/overflow-body-propagation-ref.html
Rune Lillesveen 55c2a6a8f5 Bug 1568525 [wpt PR 18039] - Handle display:contents for viewport propagation., a=testonly
Automatic update from web-platform-tests
Handle display:contents for viewport propagation.

When documentElement/body does not generate a box, its background will
not propagate to the viewport (see [1]). This removes the need
for calling EnsureComputedStyle() on documentElement/body.

The CSSWG has also resolved that to be the case also for other
properties propagated to the viewport[2].

Some of the wpt tests for body propagation didn't actually have a body
element. Added.

[1] https://drafts.csswg.org/css-backgrounds/#special-backgrounds
[2] https://github.com/w3c/csswg-drafts/issues/3779#issuecomment-481762912

Bug: 987207

Change-Id: I06e618e2acd2926b5ae4831bf5825e13e970d035
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1547974
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680834}

--

wpt-commits: d40f18ae072cab633cfb34fb883e12c87c1bc191
wpt-pr: 18039
2019-08-05 14:49:41 +00:00

5 lines
187 B
HTML

<!doctype html>
<html style="overflow:scroll">
<title>CSS Overflow Test Reference</title>
<body style="margin-top:100px">The viewport should have scrollbars, not the body.</body>
</html>