@@ -25,12 +25,12 @@ Repository: w3c/css-houdini-drafts
25
25
26
26
<pre class='biblio'>
27
27
{
28
- "css-paint-api": {
29
- "title": "CSS Painting API"
30
- },
31
- "css-layout-api": {
32
- "title": "CSS Layout API"
33
- }
28
+ "css-paint-api": {
29
+ "title": "CSS Painting API"
30
+ },
31
+ "css-layout-api": {
32
+ "title": "CSS Layout API"
33
+ }
34
34
}
35
35
</pre>
36
36
@@ -62,15 +62,15 @@ Registering custom properties {#registering-custom-properties}
62
62
63
63
<pre class='idl'>
64
64
dictionary PropertyDescriptor {
65
- required DOMString name;
66
- DOMString syntax = "*";
67
- boolean inherits = false;
68
- DOMString initialValue;
65
+ required DOMString name;
66
+ DOMString syntax = "*";
67
+ boolean inherits = false;
68
+ DOMString initialValue;
69
69
};
70
70
71
71
partial interface CSS {
72
- static void registerProperty(PropertyDescriptor descriptor);
73
- static void unregisterProperty(DOMString name);
72
+ static void registerProperty(PropertyDescriptor descriptor);
73
+ static void unregisterProperty(DOMString name);
74
74
};
75
75
</pre>
76
76
@@ -160,9 +160,9 @@ are valid. Hence, the result of this stylesheet:
160
160
161
161
<pre class='lang-css'>
162
162
.thing {
163
- --my-color: green;
164
- --my-color: url("not-a-color");
165
- color: var(--my-color);
163
+ --my-color: green;
164
+ --my-color: url("not-a-color");
165
+ color: var(--my-color);
166
166
}
167
167
</pre>
168
168
@@ -199,7 +199,7 @@ The following syntax strings are supported:
199
199
:: Any valid <<percentage>> value
200
200
: "<length-percentage>"
201
201
:: Any valid <<length>> or <<percentage>> value, any valid <<calc()>>
202
- expression combining <<length>> and <<percentage>> components.
202
+ expression combining <<length>> and <<percentage>> components.
203
203
: "<color>"
204
204
:: Any valid <<color>> value
205
205
: "<image>"
@@ -247,12 +247,12 @@ For example, the following are all valid syntax strings.
247
247
:: accepts length values
248
248
: <code> "<length> | <percentage>"</code>
249
249
:: accepts lengths, percentages, percentage calc expressions, and length calc
250
- expressions, but not calc expressions containing a combination of length
251
- and percentage values.
250
+ expressions, but not calc expressions containing a combination of length
251
+ and percentage values.
252
252
: <code> "<length-percentage>"</code>
253
253
:: accepts all values that <code> "<length> | <percentage>"</code> would
254
- accept, as well as calc expressions containing a combination of both length
255
- and percentage values.
254
+ accept, as well as calc expressions containing a combination of both length
255
+ and percentage values.
256
256
: <code> "big | bigger | BIGGER"</code>
257
257
:: accepts the ident "big", or the ident "bigger", or the ident "BIGGER".
258
258
: <code> "<length>+"</code>
@@ -273,11 +273,11 @@ For <length> values, the computed value is the absolute length expressed in p
273
273
274
274
For <length-percentage> values, the computed value is one of the following:
275
275
* if the specified value contains only length units, the computed value is the absolute length
276
- expressed in pixels.
276
+ expressed in pixels.
277
277
* if the specified value contains only percentages, the computed value is a
278
- simple percentage.
278
+ simple percentage.
279
279
* otherwise, the computed value is a calc expression containing an absolute
280
- length expressed in pixels, and a percentage value.
280
+ length expressed in pixels, and a percentage value.
281
281
282
282
For <custom-ident>, ident, <color>, <image>, <url>, <integer>,
283
283
<angle>, <time>, <resolution>, <transform-function> or "*" values, the
@@ -336,23 +336,23 @@ Example 1: Using custom properties to add animation behavior {#example-1}
336
336
<pre class='lang-markup'>
337
337
<script>
338
338
CSS.registerProperty({
339
- name: "--stop-color",
340
- syntax: "<color>",
341
- inherits: false,
342
- initialValue: "rgba(0,0,0,0)"
339
+ name: "--stop-color",
340
+ syntax: "<color>",
341
+ inherits: false,
342
+ initialValue: "rgba(0,0,0,0)"
343
343
});
344
344
</script>
345
345
346
346
<style>
347
347
348
348
.button {
349
- --stop-color: red;
350
- background: linear-gradient(var(--stop-color), black);
351
- transition: --stop-color 1s;
349
+ --stop-color: red;
350
+ background: linear-gradient(var(--stop-color), black);
351
+ transition: --stop-color 1s;
352
352
}
353
353
354
354
.button:hover {
355
- --stop-color: green;
355
+ --stop-color: green;
356
356
}
357
357
358
358
</style>
0 commit comments