Skip to content

Commit 5a82886

Browse files
committed
Switch to tab-based indentation, because the spec can't decide between 2- and 4-space indentation.
1 parent 321c596 commit 5a82886

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

css-properties-values-api/Overview.bs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ Repository: w3c/css-houdini-drafts
2525

2626
<pre class='biblio'>
2727
{
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+
}
3434
}
3535
</pre>
3636

@@ -62,15 +62,15 @@ Registering custom properties {#registering-custom-properties}
6262

6363
<pre class='idl'>
6464
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;
6969
};
7070

7171
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);
7474
};
7575
</pre>
7676

@@ -160,9 +160,9 @@ are valid. Hence, the result of this stylesheet:
160160

161161
<pre class='lang-css'>
162162
.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);
166166
}
167167
</pre>
168168

@@ -199,7 +199,7 @@ The following syntax strings are supported:
199199
:: Any valid <<percentage>> value
200200
: "&lt;length-percentage>"
201201
:: Any valid <<length>> or <<percentage>> value, any valid <<calc()>>
202-
expression combining <<length>> and <<percentage>> components.
202+
expression combining <<length>> and <<percentage>> components.
203203
: "&lt;color>"
204204
:: Any valid <<color>> value
205205
: "&lt;image>"
@@ -247,12 +247,12 @@ For example, the following are all valid syntax strings.
247247
:: accepts length values
248248
: <code>"&lt;length> | &lt;percentage>"</code>
249249
:: 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.
252252
: <code>"&lt;length-percentage>"</code>
253253
:: accepts all values that <code>"&lt;length> | &lt;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.
256256
: <code>"big | bigger | BIGGER"</code>
257257
:: accepts the ident "big", or the ident "bigger", or the ident "BIGGER".
258258
: <code>"&lt;length>+"</code>
@@ -273,11 +273,11 @@ For &lt;length> values, the computed value is the absolute length expressed in p
273273

274274
For &lt;length-percentage> values, the computed value is one of the following:
275275
* if the specified value contains only length units, the computed value is the absolute length
276-
expressed in pixels.
276+
expressed in pixels.
277277
* if the specified value contains only percentages, the computed value is a
278-
simple percentage.
278+
simple percentage.
279279
* 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.
281281

282282
For &lt;custom-ident>, ident, &lt;color>, &lt;image>, &lt;url>, &lt;integer>,
283283
&lt;angle>, &lt;time>, &lt;resolution>, &lt;transform-function> or "*" values, the
@@ -336,23 +336,23 @@ Example 1: Using custom properties to add animation behavior {#example-1}
336336
<pre class='lang-markup'>
337337
&lt;script&gt;
338338
CSS.registerProperty({
339-
name: "--stop-color",
340-
syntax: "&lt;color&gt;",
341-
inherits: false,
342-
initialValue: "rgba(0,0,0,0)"
339+
name: "--stop-color",
340+
syntax: "&lt;color&gt;",
341+
inherits: false,
342+
initialValue: "rgba(0,0,0,0)"
343343
});
344344
&lt;/script&gt;
345345

346346
&lt;style&gt;
347347

348348
.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;
352352
}
353353

354354
.button:hover {
355-
--stop-color: green;
355+
--stop-color: green;
356356
}
357357

358358
&lt;/style&gt;

0 commit comments

Comments
 (0)