Skip to content

Commit 1b05356

Browse files
authored
Add custom tests for sibling-count() and sibling-index() (#2453)
1 parent 5b2d215 commit 1b05356

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

custom/css.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,16 @@
12811281
"rect": "rect(10px, 20px, 20px, 10px)"
12821282
}
12831283
},
1284+
"sibling-count": {
1285+
"syntax": "<sibling-count()>",
1286+
"property": "width",
1287+
"value": "calc(100px * sibling-count())"
1288+
},
1289+
"sibling-index": {
1290+
"syntax": "<sibling-index()>",
1291+
"property": "width",
1292+
"value": "calc(100px * sibling-index())"
1293+
},
12841294
"sign": {
12851295
"syntax": "<sign()>",
12861296
"property": "top",

0 commit comments

Comments
 (0)