gecko-dev/testing/web-platform/tests/css/css-scoping/reslot-text-inheritance.html
Rune Lillesveen 59a2ffd0a4 Bug 1545569 [wpt PR 16318] - Always clear style dirtiness on text recalc., a=testonly
Automatic update from web-platform-tests
Always clear style dirtiness on text recalc.

The early return incorrectly skipped the ClearNeedsStyleRecalc().

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

--

wpt-commits: b321aa0a0b37f01498cddd6816339924de0ca305
wpt-pr: 16318
2019-06-05 10:25:53 +01:00

17 lines
600 B
HTML

<!doctype html>
<html class="reftest-wait">
<title>CSS Test: Re-slotted text node inheritance</title>
<link rel="help" href="https://drafts.csswg.org/css-scoping/#slotted-pseudo">
<link rel="match" href="reference/green-text.html">
<script src="/common/reftest-wait.js"></script>
<p id="host">This text should be green.</p>
<script>
const root = host.attachShadow({mode:"open"});
root.innerHTML = `
<slot style="color:green" name="no-match"></slot>
<slot style="color:red"></slot>
`;
host.offsetTop;
root.querySelector("slot").removeAttribute("name");
takeScreenshot();
</script>