tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 1014dbbaf98669de86709883e0045cf4fb4d2b3d
parent c5869cea3197a1bb0cc74cdbd09365b71f2068cb
Author: Daniil Sakhapov <sakhapov@chromium.org>
Date:   Fri,  3 Oct 2025 09:00:00 +0000

Bug 1991114 [wpt PR 55097] - Check if pseudo-element has any counters styles on dispose, a=testonly

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

Diffstat:
Atesting/web-platform/tests/css/css-lists/deep-pseudo-element-remove-update-ref.html | 5+++++
Atesting/web-platform/tests/css/css-lists/deep-pseudo-element-remove-update.html | 25+++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/testing/web-platform/tests/css/css-lists/deep-pseudo-element-remove-update-ref.html b/testing/web-platform/tests/css/css-lists/deep-pseudo-element-remove-update-ref.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<div>1A</div> +<div>2B</div> +<div>3C</div> +<div>4E</div> diff --git a/testing/web-platform/tests/css/css-lists/deep-pseudo-element-remove-update.html b/testing/web-platform/tests/css/css-lists/deep-pseudo-element-remove-update.html @@ -0,0 +1,25 @@ +<!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>