Skip to content

Commit 36d03ad

Browse files
committed
[css-properties-values-api] define how typed custom properties influence
@supports.
1 parent 85cc50f commit 36d03ad

File tree

1 file changed

+34
-11
lines changed

1 file changed

+34
-11
lines changed

css-properties-values-api/Overview.bs

+34-11
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ Repository: w3c/css-houdini-drafts
3333
}
3434
</pre>
3535

36+
<pre class='link-defaults'>
37+
spec:css-transforms-1; type:type; text:<transform-function>
38+
spec:css-conditional-3; type:method; text:supports(property, value)
39+
</pre>
40+
3641
Introduction {#intro}
3742
=====================
3843

@@ -57,7 +62,7 @@ Registering custom properties {#registering-custom-properties}
5762
<pre class='idl'>
5863
dictionary PropertyDescriptor {
5964
required DOMString name;
60-
DOMString syntax = '*';
65+
DOMString syntax = "*";
6166
boolean inherits = false;
6267
DOMString initialValue;
6368
};
@@ -121,16 +126,6 @@ values for that property are turned into computed values is defined
121126
fully by the type selected, as described in
122127
<a section href="#calculation-of-computed-values"></a>.
123128

124-
Note: As defined by [[css3-animations]] and [[css3-transitions]], it is possible to
125-
specify animations and transitions that reference custom properties.
126-
127-
When referenced by animations and transitions, custom properties will interpolate
128-
in a manner defined by their types.
129-
If the start and end of an interpolation have matching types, then they
130-
will interpolate as specified in [[!css3-animations]].
131-
Otherwise, the interpolation falls back to the default 50% flip described in
132-
[[!css3-animations]].
133-
134129
If {{registerProperty()}} is called with a descriptor name that matches an already registered property,
135130
then an {{InvalidModificationError}} is thrown and the re-registration fails.
136131

@@ -278,6 +273,34 @@ matches to the specified value.
278273
For list values, the computed value is a list of the computed values of the
279274
primitives in the list.
280275

276+
Behavior of Custom Properties {#behavior-of-custom-properties}
277+
==============================================================
278+
279+
Animation Behavior of Custom Properties {#animation-behavior-of-custom-properties}
280+
----------------------------------------------------------------------------------
281+
282+
Note: As defined by [[css3-animations]] and [[css3-transitions]], it is possible to
283+
specify animations and transitions that reference custom properties.
284+
285+
When referenced by animations and transitions, custom properties interpolate
286+
in a manner defined by their types.
287+
If the start and end of an interpolation have matching types, then they
288+
will interpolate as specified in [[!css3-animations]].
289+
Otherwise, the interpolation falls back to the default 50% flip described in
290+
[[!css3-animations]].
291+
292+
Conditional Rules {#conditional-rules}
293+
--------------------------------------
294+
295+
@supports rules and the <a method for=CSS>supports()</a> method behave as specified
296+
in [[!css-variables]].
297+
298+
Note: In other words, for the purpose of determining whether a value is
299+
supported by a given custom property, the type registered for the custom property is
300+
ignored and any value consisting of at least one token is considered valid.
301+
302+
Issue(118): should @supports pay attention to type when considering custom properties?
303+
281304
Examples {#examples}
282305
====================
283306

0 commit comments

Comments
 (0)