Skip to content

[css-properties-values-api-1] Export registered custom property, etc #1020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions css-properties-values-api/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ allow custom properties to directly impact paint and layout behaviours respectiv
Registered Custom Properties {#behavior-of-custom-properties}
=============================================================

A [=custom property=] can become a <dfn local-lt="registered">registered custom property</dfn>,
A [=custom property=] can become a <dfn export local-lt="registered">registered custom property</dfn>,
making it act more like a UA-defined property:
giving it a syntax that's checked by the UA,
an initial value,
Expand Down Expand Up @@ -209,7 +209,8 @@ or the [=guaranteed-invalid value=]).
Otherwise, attempt to [=CSS/parse=] the property's value
according to its registered syntax.
If this fails,
the [=computed value=] is the [=guaranteed-invalid value=].
the declaration is [=invalid at computed-value time=]
and the [=computed value=] is determined accordingly.
If it succeeds,
the [=computed value=] depends on the specifics of the syntax:

Expand Down Expand Up @@ -569,7 +570,7 @@ If omitted, the [=initial value=] of the property is the [=guaranteed-invalid va

Otherwise,
if the value of the 'syntax' descriptor is not the [=universal syntax definition=],
the following conditions must be met for the the ''@property'' rule to be valid:
the following conditions must be met for the ''@property'' rule to be valid:

* The 'initial-value' descriptor must be present.
* The 'initial-value' descriptor's value must [=consume a syntax definition|parse successfully=]
Expand Down Expand Up @@ -974,7 +975,7 @@ Parsing The Syntax String {#parsing-syntax}
: <dfn export>syntax definition</dfn>
:: An object consisting of a list of <a>syntax components</a>.

: <dfn>universal syntax definition</dfn>
: <dfn export>universal syntax definition</dfn>
:: A special syntax definition which accepts any valid token stream.

### Consume a Syntax Definition ### {#consume-syntax-definition}
Expand Down