Skip to content

Commit 981ed05

Browse files
committed
[css-syntax] Specify that duplication declarations in style rules are discarded.
1 parent 151ad66 commit 981ed05

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

css-syntax/Overview.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,6 +2770,9 @@ <h3 data-level=8.1 id=style-rules><span class=secno>8.1 </span><span class=conte
27702770
The validity of the style rule’s contents have no effect on the validity of the style rule itself.
27712771
Unless otherwise specified, property names are <a href=#ascii-case-insensitive>ASCII case-insensitive</a>.
27722772

2773+
<p> If a <a href=#style-rule>style rule</a> contains multiple declarations with the same name,
2774+
all but the last such declaration are discarded.
2775+
27732776
<p class=note> Note: The names of Custom Properties <a data-biblio-type=informative data-link-type=biblio href=#css-variables title=CSS-VARIABLES>[CSS-VARIABLES]</a> are case-sensitive.
27742777

27752778
<p> <a href=#qualified-rule>Qualified rules</a> at the top-level of a CSS stylesheet are style rules.

css-syntax/Overview.src.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,6 +2657,9 @@ <h3>
26572657
The validity of the style rule’s contents have no effect on the validity of the style rule itself.
26582658
Unless otherwise specified, property names are <i>ASCII case-insensitive</i>.
26592659

2660+
If a <i>style rule</i> contains multiple declarations with the same name,
2661+
all but the last such declaration are discarded.
2662+
26602663
Note: The names of Custom Properties [[CSS-VARIABLES]] are case-sensitive.
26612664

26622665
<i>Qualified rules</i> at the top-level of a CSS stylesheet are style rules.

0 commit comments

Comments
 (0)