diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /testing/web-platform/tests/css/css-contain/contain-style-counters-002.html | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/contain-style-counters-002.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/contain-style-counters-002.html | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/testing/web-platform/tests/css/css-contain/contain-style-counters-002.html b/testing/web-platform/tests/css/css-contain/contain-style-counters-002.html index 48494ce2be..862ee789b7 100644 --- a/testing/web-platform/tests/css/css-contain/contain-style-counters-002.html +++ b/testing/web-platform/tests/css/css-contain/contain-style-counters-002.html @@ -5,10 +5,9 @@ <title>CSS Containment Test: 'contain: style' and counter (with 'display: contents')</title> <link rel="help" href="https://www.w3.org/TR/css-contain-1/#containment-style"> - <link rel=help href="https://github.com/w3c/csswg-drafts/issues/7392"> - <link rel="match" href="reference/contain-style-counters-001-ref.html"> - - <meta content="This test checks that when an element has 'contain: style', then counters which may be affecting its subtree are reset to 0 for such scope. In this test, the div#test does not generate a principal box because of 'display: contents'. Despite that particular condition, 'contain: style' will have an effect on div#test." name="assert"> + <link rel="match" href="reference/contain-style-counters-002-ref.html"> + <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/7392"> + <meta content="This test checks that when an element has 'contain: style', then counters which may be affecting its subtree are not reset if they don't generate a box, e.g. due to display: contents" name="assert"> <style> div#create-counter @@ -29,14 +28,6 @@ font-size: 3em; } - /* - Other types of containment (size, layout, paint) have no - effect on box that do not generate a principal box which - is the case here with div#test because of 'display: contents'. - But in this test, 'contain: style' will apply and will - have a rendering effect on the counter. - */ - div#test span { counter-increment: counter-of-span 5; @@ -61,7 +52,7 @@ </style> - <p>Test passes if there is the digit 5. + <p>Test passes if there is the number 14. <div id="create-counter"></div> |