@@ -68,7 +68,7 @@ via two methods:
68
68
This specification is complementary to [[css-paint-api-1]] and [[css-layout-api-1]] , which
69
69
allow custom properties to directly impact paint and layout behaviours respectively.
70
70
71
- Registering custom properties {#registering-custom-properties}
71
+ Registering Custom Properties {#registering-custom-properties}
72
72
==============================================================
73
73
74
74
<pre class='idl'>
@@ -87,7 +87,7 @@ partial namespace CSS {
87
87
Additional, the {{Document}} object gains a new <dfn attribute for=Window>\[[registeredPropertySet]]</dfn> private slot,
88
88
which is a set of records that describe registered custom properties.
89
89
90
- The {{PropertyDefinition}} dictionary {#the-propertydefinition-dictionary}
90
+ The {{PropertyDefinition}} Dictionary {#the-propertydefinition-dictionary}
91
91
--------------------------------------------------------------------------
92
92
93
93
A <dfn dictionary>PropertyDefinition</dfn> dictionary represents author-specified configuration
@@ -106,7 +106,7 @@ following members:
106
106
: <dfn dict-member for=PropertyDefinition>initialValue</dfn>
107
107
:: The initial value of this custom property.
108
108
109
- The {{registerProperty()}} function {#the-registerproperty-function}
109
+ The {{registerProperty()}} Function {#the-registerproperty-function}
110
110
--------------------------------------------------------------------
111
111
112
112
The <dfn method for=CSS>registerProperty(PropertyDefinition definition)</dfn> method
@@ -353,7 +353,7 @@ but be automatically [=invalid at computed-value time=].
353
353
As ''@supports'' tests parse behavior,
354
354
it thus also accepts all values as valid regardless of the registered syntax.
355
355
356
- Dependency cycles via relative units {#dependency-cycles}
356
+ Dependency Cycles Via Relative Units {#dependency-cycles}
357
357
---------------------------------------------------------
358
358
359
359
Registered custom properties follow the same rules for dependency cycle
@@ -450,7 +450,7 @@ that more closely resemble the full breadth of what CSS properties allow.
450
450
The remainder of this chapter describes the internal grammar of the syntax
451
451
strings.
452
452
453
- Supported names {#supported-names}
453
+ Supported Names {#supported-names}
454
454
----------------------------------
455
455
456
456
This section defines the <dfn for=CSS lt="supported syntax component name">supported syntax component names</dfn> , and the
@@ -507,7 +507,7 @@ Note: A syntax string of <code>"*"</code> will produce the
507
507
Therefore, <code> "*"</code> may not be [[#multipliers|multiplied]] or
508
508
[[#combinator|combined]] with anything else.
509
509
510
- The '+' and '#' multipliers {#multipliers}
510
+ The '+' and '#' Multipliers {#multipliers}
511
511
------------------------------------------
512
512
513
513
Any <a>syntax component name</a> except
@@ -529,7 +529,7 @@ Any <a>syntax component name</a> except
529
529
Note: The multiplier must appear immediately after the <a>syntax component name</a>
530
530
being multiplied.
531
531
532
- The '|' combinator {#combinator}
532
+ The '|' Combinator {#combinator}
533
533
--------------------------------
534
534
535
535
<a>Syntax strings</a> may use U+007C VERTICAL LINE (|) to provide multiple
@@ -550,7 +550,7 @@ while matching the value ''blue'' will parse as a <<color>>.
550
550
:: accepts foo, a comma-separated list of color values, or a single integer
551
551
</div>
552
552
553
- Parsing the syntax string {#parsing-syntax}
553
+ Parsing The Syntax String {#parsing-syntax}
554
554
-------------------------------------------
555
555
556
556
### Definitions ### {#parsing-definitions}
@@ -574,7 +574,7 @@ Parsing the syntax string {#parsing-syntax}
574
574
: <dfn>universal syntax definition</dfn>
575
575
:: A special syntax definition which accepts any valid token stream.
576
576
577
- ### Consume a syntax definition ### {#consume-syntax-definition}
577
+ ### Consume a Syntax Definition ### {#consume-syntax-definition}
578
578
579
579
<div algorithm>
580
580
This section describes how to <dfn export>consume a syntax definition</dfn> from a [=string=] |string|.
@@ -614,7 +614,7 @@ Parsing the syntax string {#parsing-syntax}
614
614
615
615
</div>
616
616
617
- ### Consume a syntax component ### {#consume-syntax-component}
617
+ ### Consume a Syntax Component ### {#consume-syntax-component}
618
618
619
619
<div algorithm>
620
620
To <dfn>consume a syntax component</dfn> from a stream of <a>code points</a> |stream|:
@@ -657,7 +657,7 @@ Parsing the syntax string {#parsing-syntax}
657
657
Return |component|.
658
658
</div>
659
659
660
- ### Consume a data type name ### {#consume-data-type-name}
660
+ ### Consume a Data Type Name ### {#consume-data-type-name}
661
661
662
662
<div algorithm>
663
663
To <dfn>consume a data type name</dfn> from a stream of <a>code points</a> :
@@ -765,7 +765,7 @@ to full URLs as described in [[!css3-values]].
765
765
</div>
766
766
767
767
768
- Fallbacks in ''var()'' references {#fallbacks-in-var-references}
768
+ Fallbacks In ''var()'' References {#fallbacks-in-var-references}
769
769
----------------------------------------------------------------
770
770
771
771
References to registered custom properties using the ''var()'' function may
@@ -855,7 +855,7 @@ CSSOM {#cssom}
855
855
</div>
856
856
857
857
858
- The <dfn>@property</dfn> rule {#at-property-rule}
858
+ The <dfn>@property</dfn> Rule {#at-property-rule}
859
859
=================================================
860
860
861
861
The ''@property'' rule provides an alternative way to register a custom property,
@@ -902,7 +902,7 @@ Note: This might change in the future,
902
902
as the behavior of concept-defining at-rules in shadow trees
903
903
becomes more consistently defined.
904
904
905
- The 'syntax' descriptor {#the-syntax-descriptor}
905
+ The 'syntax' Descriptor {#the-syntax-descriptor}
906
906
------------------------------------------------
907
907
908
908
<pre class='descdef'>
@@ -923,7 +923,7 @@ If the provided string does not successfully [=consume a syntax definition|parse
923
923
the descriptor is invalid and must be ignored.
924
924
925
925
926
- The 'inherits' descriptor {#inherits-descriptor}
926
+ The 'inherits' Descriptor {#inherits-descriptor}
927
927
------------------------------------------------
928
928
929
929
<pre class='descdef'>
@@ -940,7 +940,7 @@ The inherits descriptor is required for the ''@property'' rule to be valid;
940
940
if it's missing, the ''@property'' rule is invalid.
941
941
942
942
943
- The 'initial-value' descriptor {#initial-value-descriptor}
943
+ The 'initial-value' Descriptor {#initial-value-descriptor}
944
944
----------------------------------------------------------
945
945
946
946
<pre class='descdef'>
@@ -968,7 +968,19 @@ the following conditions must be met for the the ''@property'' rule to be valid:
968
968
969
969
If the above conditions are not met, the ''@property'' rule is invalid.
970
970
971
- The <dfn interface>CSSPropertyRule</dfn> interface {#the-css-property-rule-interface}
971
+
972
+ Extensions to the {{CSSRule}} Interface {#extensions-to-css-rule-interface}
973
+ ------------------------------------------------------------------------------------
974
+
975
+ The {{CSSRule}} interface is extended as follows:
976
+
977
+ <pre class='idl'>
978
+ partial interface CSSRule {
979
+ const unsigned short PROPERTY_RULE = 18;
980
+ };
981
+ </pre>
982
+
983
+ The <dfn interface>CSSPropertyRule</dfn> Interface {#the-css-property-rule-interface}
972
984
-----------------------------------------------------------------------------
973
985
974
986
The {{CSSPropertyRule}} interface represents an ''@property'' rule.
0 commit comments