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.


Bug: 1085750
Change-Id: I7686c6f8bf4918bec5812d1bf893ad2c4cb9262c

Reviewed-by: default avatarAnders Hartvoll Ruud <>
Commit-Queue: Rune Lillesveen <>
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="">
<link rel="help" href="">
<link rel="match" href="display-contents-root-background-ref.html">
:root {
display: contents;
background-image: url(../support/1x1-green.png);
<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