WPT: Fix contain-style-counters-004.html with correct expectations.
contain-style-counters-004.html has spans as non-siblings of the
div that prints the number.
This patch adjusts the expectations to print 0, instead of 20. Note
that contain-style-counters-003.html already tests for siblings
relationship.
R=tabatkins@chromium.org, chrishtr@chromium.org
Change-Id: I0ca60bed403ba31844688b7f97db8c50628fcaf7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1689072
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#675309}
diff --git a/css/css-contain/contain-style-counters-004.html b/css/css-contain/contain-style-counters-004.html
index e0e0528..4a366e3 100644
--- a/css/css-contain/contain-style-counters-004.html
+++ b/css/css-contain/contain-style-counters-004.html
@@ -6,7 +6,7 @@
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="https://www.w3.org/TR/css-contain-1/#containment-style">
- <link rel="match" href="reference/contain-style-counters-003-ref.html">
+ <link rel="match" href="reference/contain-style-counters-004-ref.html">
<meta name="flags" content="">
@@ -63,8 +63,10 @@
<p> <span></span> <span></span> <span></span> <span></span>
- <!-- 4 span inside the <p> -->
+ <!-- 4 span inside the <p>. However, since div isn't a sibling of spans,
+ it creates a new counter.
+ -->
- <p>Test passes if there is the number 20.
+ <p>Test passes if there is the number 0.
<div></div>
diff --git a/css/css-contain/reference/contain-style-counters-004-ref.html b/css/css-contain/reference/contain-style-counters-004-ref.html
new file mode 100644
index 0000000..afe6066
--- /dev/null
+++ b/css/css-contain/reference/contain-style-counters-004-ref.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+
+ <meta charset="UTF-8">
+
+ <title>CSS Reference Test</title>
+
+ <link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
+
+ <style>
+ div
+ {
+ font-size: 3em;
+ }
+ </style>
+
+ <p>Test passes if there is the number 0.
+
+ <div>0</div>