Skip to content

Commit f6a120f

Browse files
lillesmoz-wptsync-bot
authored andcommitted
Bug 1951448 [wpt PR 51054] - Pseudo element styles use sibling-index/count() from originating element, a=testonly
Automatic update from web-platform-tests Pseudo element styles use sibling-index/count() from originating element This is per current spec: https://drafts.csswg.org/css-values-5/#tree-counting Bug: 40282719 Change-Id: I4dadfe77feedf6f5c031e6d2ee7b377ef807f6f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6308863 Reviewed-by: Steinar H Gunderson <[email protected]> Commit-Queue: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1427628} -- wpt-commits: 496fad2bc27512a1ea21d446d439179f3a464697 wpt-pr: 51054
1 parent 5fcf024 commit f6a120f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/web-platform/tests/css/css-values/calc-sibling-function.html

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#test::before {
1515
content: "";
1616
z-index: calc(sibling-index() * 2);
17+
widows: calc(sibling-count() * 2);
1718
}
1819
</style>
1920
</head>
@@ -44,6 +45,7 @@
4445
test(() => {
4546
let style = getComputedStyle(document.getElementById('test'), '::before');
4647
assert_equals(style.zIndex, '4');
48+
assert_equals(style.widows, '10');
4749
}, 'sibling-count on pseudo-element');
4850
</script>
4951
</body>

0 commit comments

Comments
 (0)