Skip to content

Commit f1f3672

Browse files
bramustabatkins
andauthored
[css-values-5] [css-mixins-1] Define local type() functions (#11470)
* [css-values-5] [css-mixins-1] Define local `type()` functions * Update css-mixins-1/Overview.bs * Update css-values-5/Overview.bs --------- Co-authored-by: Tab Atkins Jr. <jackalmage@gmail.com>
1 parent 02ad75a commit f1f3672

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

css-mixins-1/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ and its syntax is:
113113
<dfn><<function-dependency-list>></dfn> = <<function-parameter>>#
114114
<dfn><<function-parameter>></dfn> = <<custom-property-name>> <<css-type>>? [ : <<declaration-value>> ]?
115115
<dfn><<css-type>></dfn> = <<syntax-component>> | <<type()>>
116-
<dfn>&lt;type()></dfn> = type( <<syntax>> )
116+
<dfn function lt="type()" for="@function">&lt;type()></dfn> = type( <<syntax>> )
117117
</pre>
118118

119119
The <dfn><<function-name>></dfn> production
@@ -131,7 +131,7 @@ and the [=return type=] is optionally given by the <<css-type>> following the "r
131131
[=function dependency=],
132132
or [=custom function=] return value
133133
can be described by a single <<syntax-component>>,
134-
then the <code>type()</code> function may be omitted:
134+
then the ''type()'' function may be omitted:
135135

136136
<pre class='lang-css'>
137137
@function --foo(--a &lt;length&gt;) { /* ... */ }
@@ -141,7 +141,7 @@ and the [=return type=] is optionally given by the <<css-type>> following the "r
141141

142142
However,
143143
any <<syntax>> that requires a <<syntax-combinator>>
144-
needs to be wrapped in the <code>type()</code> function:
144+
needs to be wrapped in the ''type()'' function:
145145

146146
<pre class='lang-css'>
147147
@function --foo(--a type(&lt;number&gt; | &lt;percentage&gt;)) { /* ... */ }

css-values-5/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ Ian's proposal:
15571557
attr() = attr( <<attr-name>> <<attr-type>>? , <<declaration-value>>?)
15581558
15591559
<dfn>&lt;attr-name></dfn> = [ <<ident-token>>? '|' ]? <<ident-token>>
1560-
<dfn>&lt;attr-type></dfn> = type( <<syntax>> ) | string | <<attr-unit>>
1560+
<dfn>&lt;attr-type></dfn> = <dfn function lt="type()" for="attr()">type( <<syntax>> )</dfn> | string | <<attr-unit>>
15611561
</pre>
15621562

15631563
The <dfn>&lt;attr-unit></dfn> production matches any [=identifier=]

0 commit comments

Comments
 (0)