forked from mirrors/gecko-dev
Automatic update from web-platform-tests Update layout tree rebuild root after removing pseudo element. We tried to avoid marking the pseudo element when it was about to be removed, but the pseudo element earlied out before removal if it wasn't marked for re-attachment causing the element not to be removed. Notify the StyleEngine about removal instead, so that it can update the traversal root. For normal elements the StyleEngine is notified through ChildrenRemoved(). Bug: 989894 Change-Id: Ia2bf52c9bed157c4ac806a10b9367b0f99038974 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1732096 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#683543} -- wpt-commits: 4114304c6526b10034c92d04e769a70e4cbdd443 wpt-pr: 18249
22 lines
576 B
HTML
22 lines
576 B
HTML
<!doctype html>
|
|
<title>CSS Test: ::before box removed when display set to 'none'.</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#generated-content">
|
|
<link rel="match" href="../reference/pass_if_pass_below.html">
|
|
<style>
|
|
#id::before {
|
|
content: "FAIL";
|
|
position: absolute;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: red;
|
|
}
|
|
#id.none::before {
|
|
display: none;
|
|
}
|
|
</style>
|
|
<p>Test passes if there is the word "PASS" below.</p>
|
|
<div id="id" class="open">PASS</div>
|
|
<script>
|
|
id.offsetTop;
|
|
id.className = "none";
|
|
</script>
|