Skip to content

Commit 62537b1

Browse files
committed
[css-variables] Improve note about custom properties. Add DoC.
--HG-- extra : rebase_source : 62591cae5197bc2d00a0370920d766fa63eef35e
1 parent 5de5e3b commit 62537b1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

css-variables/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ Defining Custom Properties: the '--*' family of properties</h2>
118118
and thus are not substituted in by the corresponding variable.
119119

120120
Note: While this module focuses on the use of <a>custom properties</a> with the ''var()'' function to create “variables”,
121-
it's expected that a future module will make it easier to use them as actual custom properties,
121+
they can also be used as actual custom properties,
122122
parsed by and acted on by script.
123+
It's expected that the CSS Extensions spec [[CSS-EXTENSIONS]]
124+
will expand on these use-cases and make them easier to do.
123125

124126
<h3 id='syntax'>
125127
Custom Property Value Syntax</h3>

css-variables/Overview.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,10 @@ <h2 class="heading settled heading" data-level=2 id=defining-variables><span cla
229229
and thus are not substituted in by the corresponding variable.
230230

231231
<p class=note> Note: While this module focuses on the use of <a data-link-type=dfn href=#custom-property title="custom properties">custom properties</a> with the <a class=css data-link-type=maybe href=#funcdef-var title=var()>var()</a> function to create “variables”,
232-
it’s expected that a future module will make it easier to use them as actual custom properties,
232+
they can also be used as actual custom properties,
233233
parsed by and acted on by script.
234+
It’s expected that the CSS Extensions spec <a data-biblio-type=informative data-link-type=biblio href=#css-extensions title=css-extensions>[CSS-EXTENSIONS]</a>
235+
will expand on these use-cases and make them easier to do.
234236

235237
<h3 class="heading settled heading" data-level=2.1 id=syntax><span class=secno>2.1 </span><span class=content>
236238
Custom Property Value Syntax</span><a class=self-link href=#syntax></a></h3>

0 commit comments

Comments
 (0)