From dcb79ca1856efaa5ac6b455d1f96f63e3038e663 Mon Sep 17 00:00:00 2001 From: Daniil Sakhapov Date: Tue, 3 Oct 2023 04:51:27 -0700 Subject: [PATCH] Fix WPT CSS Counters test As per: https://drafts.csswg.org/css-contain/#example-6932a400 and https://github.com/w3c/csswg-drafts/issues/9116 counter() and counters() can cross the style containment boundary, so the result should be 13 from the body's counter-reset. Bug: 990657 Change-Id: Iee313a5ed6f487865b1b7c754aa45b736f6b8f15 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4836162 Reviewed-by: Rune Lillesveen Commit-Queue: Daniil Sakhapov Cr-Commit-Position: refs/heads/main@{#1204571} --- .../contain-style-counters-004.html | 99 ++++++------------- .../contain-style-counters-004-ref.html | 4 +- 2 files changed, 32 insertions(+), 71 deletions(-) diff --git a/css/css-contain/contain-style-counters-004.html b/css/css-contain/contain-style-counters-004.html index 40d68b4641e56a..56e7e3d87e76ed 100644 --- a/css/css-contain/contain-style-counters-004.html +++ b/css/css-contain/contain-style-counters-004.html @@ -1,71 +1,32 @@ - - - - CSS Containment Test: 'contain: style' for counters (span descendants of <body>) - - - - - - - - - - -

- - - -

Test passes if there is the number 0. - + +CSS Containment Test: 'contain: style' for counters (span descendants of <body>) + + + + + +

+ + +

Test passes if there is the number 13.

+ diff --git a/css/css-contain/reference/contain-style-counters-004-ref.html b/css/css-contain/reference/contain-style-counters-004-ref.html index afe60666c02e72..c362dbbf5330f1 100644 --- a/css/css-contain/reference/contain-style-counters-004-ref.html +++ b/css/css-contain/reference/contain-style-counters-004-ref.html @@ -13,6 +13,6 @@ } -

Test passes if there is the number 0. +

Test passes if there is the number 13. -

0
+
13