Skip to content

[css-properties-values-api][editorial] CSS.registerProperty() requires inherits argument#1163

Open
cdoublev wants to merge 1 commit into
w3c:mainfrom
cdoublev:patch-2
Open

[css-properties-values-api][editorial] CSS.registerProperty() requires inherits argument#1163
cdoublev wants to merge 1 commit into
w3c:mainfrom
cdoublev:patch-2

Conversation

@cdoublev
Copy link
Copy Markdown
Contributor

The register a custom property algorithm is defined as taking inherits as an optional argument whereas it is passed from the PropertyDefinition dictionary, which defines it as required.

To register a custom property with name being a string, and optionally syntax being a string, inherits being a boolean, and initialValue being a string, ...

dictionary PropertyDefinition {
  required DOMString name; 
  DOMString syntax       = "*"; 
  required boolean   inherits; 
  DOMString initialValue; 
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant