Skip to content

Commit edfe1ab

Browse files
authored
[css-properties-values-api-1] Export registered custom property, etc (w3c#1020)
- Export "registered custom property". - Export "universal syntax definition". - Fix a "the the". - When parsing against the syntax, we probably want invalid at computed-value time, and not guaranteed-invalid? Somewhat related to: w3c/csswg-drafts#5370
1 parent d503a83 commit edfe1ab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

css-properties-values-api/Overview.bs

+5-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ allow custom properties to directly impact paint and layout behaviours respectiv
8787
Registered Custom Properties {#behavior-of-custom-properties}
8888
=============================================================
8989

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

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

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

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

977-
: <dfn>universal syntax definition</dfn>
978+
: <dfn export>universal syntax definition</dfn>
978979
:: A special syntax definition which accepts any valid token stream.
979980

980981
### Consume a Syntax Definition ### {#consume-syntax-definition}

0 commit comments

Comments
 (0)