Automatic update from web-platform-tests Check if pseudo-element has any counters styles on dispose Fixed: 443357480 Change-Id: I522ea1fe78a21df7c6369b3183fc151c60ae7642 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6988409 Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1521226} -- wpt-commits: 033ccf8f3ddea3a8914f3b96307f3dd7ecc69127 wpt-pr: 55097
26 lines
821 B
HTML
26 lines
821 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Lists Test: counters updated when parent element of element with counter operation on its pseudo element is removed</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-lists/#inheriting-counters">
|
|
<link rel="match" href="deep-pseudo-element-remove-update-ref.html">
|
|
<style>
|
|
.container {
|
|
counter-reset: plm-table 0;
|
|
}
|
|
|
|
.numbered span::after {
|
|
content: counter(plm-table);
|
|
counter-increment: plm-table;
|
|
}
|
|
</style>
|
|
<div class="container">
|
|
<div class="numbered a"><span></span>A</div>
|
|
<div class="numbered b"><span></span>B</div>
|
|
<div id="target" class="numbered d"><span></span>D</div>
|
|
<div class="numbered c"><span></span>C</div>
|
|
<div class="numbered e"><span></span>E</div>
|
|
</div>
|
|
<script>
|
|
document.documentElement.offsetTop;
|
|
target.remove();
|
|
</script>
|