Skip to content

Commit 40c794e

Browse files
SebastianZsvgeesus
authored andcommitted
[css-conditional-5] Made last @supports-condition win #12973
1 parent 5f26843 commit 40c794e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css-conditional-5/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,8 @@ improving maintainability and readability.
17781778

17791779
Once defined, the named supports condition can be used in subsequent ''@supports'' or ''@when'' conditions.
17801780

1781-
Multiple ''@supports-condition'' rules with the same name in a style sheet are invalid and must be ignored.
1781+
If multiple ''@supports-condition'' rules are defined with the same name,
1782+
the last one in document order wins, and all preceding ones are ignored.
17821783

17831784
<div class="example">
17841785
For example, we can define a supports query checking multiple properties at once:

0 commit comments

Comments
 (0)