Skip to content

Commit

Permalink
Fix requirement for initial-value to be optional in @property (`s…
Browse files Browse the repository at this point in the history
…yntax` must be `*`, not `initial-value`) (#34065)
  • Loading branch information
benface authored Jun 11, 2024
1 parent 3e4bf66 commit 6fb5750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/@property/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The `@property` rule represents a custom property registration directly in a sty
- : Sets the initial value for the property.

The `@property` rule must include both the {{cssxref("@property/syntax","syntax")}} and {{cssxref("@property/inherits","inherits")}} descriptors; if either are missing, the entire `@property` rule is invalid and ignored.
The {{cssxref("@property/initial-value","initial-value")}} descriptor is also required, unless the syntax is the [`*` universal syntax definition](https://drafts.css-houdini.org/css-properties-values-api/#universal-syntax-definition) (e.g., `initial-value: *`).
The {{cssxref("@property/initial-value","initial-value")}} descriptor is also required, unless the syntax is the [`*` universal syntax definition](https://drafts.css-houdini.org/css-properties-values-api/#universal-syntax-definition) (e.g., `syntax: "*"`).
If the `initial-value` descriptor is required and omitted, the entire `@property` rule is invalid and ignored.

Unknown descriptors are invalid and ignored, but do not invalidate the `@property` rule.
Expand Down

0 comments on commit 6fb5750

Please sign in to comment.