Skip to content

Commit f1187c8

Browse files
committed
docs: valid selector with supports
1 parent 00ce917 commit f1187c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/rules/require-baseline.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ h1:has(+ h2) {
4545
margin: 0 0 0.25rem 0;
4646
}
4747

48+
/* valid - @supports indicates you're choosing a limited availability selector */
49+
@supports selector(:has()) {
50+
h1:has(+ h2) {
51+
margin: 0 0 0.25rem 0;
52+
}
53+
}
54+
4855
/* invalid - device-posture is not widely available */
4956
@media (device-posture: folded) {
5057
a {

0 commit comments

Comments
 (0)