Commit bf5905c3 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by moz-wptsync-bot
Browse files

Bug 1640823 [wpt PR 23765] - Load pending resources after style adjustments., a=testonly

Automatic update from web-platform-tests
Load pending resources after style adjustments.

We don't fetch resources for ComputedStyle which is in a display:none
subtree or display:contents since [1]. Style adjustments are done to the
display type in the StyleAdjuster and we need to make sure we load
resources where display changes from a non-rendered value to a rendered
one after style adjustments.

Specifically, this happens with blockification of :root elements which
are display:contents.

[1] https://crrev.com/caf740f6c0b57ca102026f40f3cc62f9f3cf5159

Bug: 1085750
Change-Id: I7686c6f8bf4918bec5812d1bf893ad2c4cb9262c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2214897

Reviewed-by: default avatarAnders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771748}

--

wpt-commits: 1c152f0e99b4ae9f10b62b70007821b072b00f75
wpt-pr: 23765
parent 6be75dee
<!doctype html>
<html style="background:green">
<title>CSS Test Reference</title>
<p>Pass if the background is green.</p>
<!doctype html>
<title>CSS Test: display:contents on root element blockified with rendered background.</title>
<link rel="help" href="https://drafts.csswg.org/css-display/#the-display-properties">
<link rel="help" href="https://drafts.csswg.org/css-display/#transformations">
<link rel="match" href="display-contents-root-background-ref.html">
<style>
:root {
display: contents;
background-image: url(../support/1x1-green.png);
}
</style>
<p>Pass if the background is green.</p>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment