mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
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
17 lines
600 B
HTML
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>
|