You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>This CSS3 module describes the various values and units that CSS
@@ -173,7 +102,7 @@ <h2>Introduction</h2>
173
102
<p>By setting property values on elements in a document, style sheets
174
103
express the appearance of the document. In order to express rich
175
104
designs, a wide range of values and associated units are necessary.
176
-
This specifiction describes the various types of values and units that
105
+
This specification describes the various types of values and units that
177
106
can be used in CSS style sheets.
178
107
179
108
@@ -239,7 +168,7 @@ <h3>Numbers with unit identifiers</h3>
239
168
240
169
<h3>Identifiers</h3>
241
170
242
-
<p>An <dfn>identifer</dfn> is an seqence of characters. Identifiers
171
+
<p>An <dfn>identifier</dfn> is an sequence of characters. Identifiers
243
172
cannot start with a digit, and there are other restrictions
244
173
[[!CSS3SYN]] on what characters an identifier can contain. Identifiers
245
174
must not be quoted.</p>
@@ -258,10 +187,10 @@ <h3>Strings</h3>
258
187
259
188
<divclass=example>
260
189
<pre>
261
-
content: "this is a 'string'";
262
-
content: "this is a \"string\"";
263
-
content: 'this is a "string"';
264
-
content: 'this is a \'string\'';
190
+
content: "this is a 'string'";
191
+
content: "this is a \"string\"";
192
+
content: 'this is a "string"';
193
+
content: 'this is a \'string\'';
265
194
</pre>
266
195
</div>
267
196
@@ -271,7 +200,7 @@ <h3>Strings</h3>
271
200
CSS). See the <spanclass="property">'content'</span> property for an
272
201
example.</p>
273
202
274
-
<p>It is possible to break strings over several lines, for esthetic or
203
+
<p>It is possible to break strings over several lines, for aesthetic or
275
204
other reasons, but in such a case the newline itself has to be escaped
276
205
with a backslash (\). The newline is subsequently removed from the
277
206
string. For instance, the following two selectors are exactly the
@@ -298,10 +227,8 @@ <h3>Functional notation</h3>
298
227
(',') with optional whitespace before and after the comma.
299
228
300
229
<divclass="example">
301
-
<pre>
302
230
background: url(http://www.example.org/image);
303
231
color: rgb(100, 200, 50 );
304
-
</pre>
305
232
</div>
306
233
307
234
<p>Some properties accept space- or comma-separated lists of values. A value
@@ -310,47 +237,6 @@ <h3>Functional notation</h3>
310
237
value is a <dfn>simple value</dfn>.
311
238
312
239
313
-
<h3>Cycle function</h3>
314
-
315
-
<p>The cycle() expression allows descendant elements to cycle over a list
316
-
of values instead of inheriting the same value. The syntax of the
317
-
cycle() expression is:
318
-
319
-
<pre>
320
-
cycle( <value> [, <value> ]*)
321
-
</pre>
322
-
323
-
where <value> is a CSS value that is valid where the expression is
324
-
placed. If any of the values inside are not valid, then the entire
325
-
cycle() expression is invalid.
326
-
327
-
<p>The value returned by cycle() must be determined by comparing the
328
-
inherited value I (the computed value on the parent, or, for the root,
329
-
the initial value) to the computed values C[n] returned by the n-th
330
-
argument to cycle(). For the earliest C[n] such that C[n] == I, the
331
-
value returned by cycle is C[n+1]. However, if this C[n] is the last
332
-
value, or if there are no C[n] that equal I, the computed value of the
333
-
first value is returned instead.
334
-
335
-
<divclass="example">
336
-
<p>Make em elements italic, but make them normal if they're inside something that's italic:
337
-
<pre>
338
-
em { font-style: cycle(italic, normal); }
339
-
</pre>
340
-
</div>
341
-
342
-
<divclass="example">
343
-
<p>Cycle between markers for nested lists, so that the top level has disk markers, but nested lists use circle, square, box, and then (for the 5th list deep) repeat:
344
-
345
-
<pre>
346
-
ul { list-style-type: disk; }
347
-
li > ul { list-style-type: cycle(disk, circle, square, box); }
348
-
</pre>
349
-
</div>
350
-
351
-
<p>Nested cycle() values are not allowed.
352
-
353
-
354
240
<h2>Keywords</h2>
355
241
356
242
<p>In the value definition fields, keywords appear literally. Keywords are identifiers.</p>
@@ -568,15 +454,15 @@ <h5>The 'vw' unit</h5>
568
454
<p>If the width of the viewport is 200mm, the font size of <code
569
455
class="html">h1</code> elements will be 16mm ((8×200)/100). When
570
456
the width of the viewport is changed (for example, when the browser
571
-
window is enlarged), lengths specifed in the 'vh' unit is scaled
572
-
propertionally.
457
+
window is enlarged), lengths specified in the 'vh' unit is scaled
458
+
proportionally.
573
459
574
460
<h5>The 'vh' unit</h5>
575
461
576
462
<p>The <dfntitle="vh (unit)">vh</dfn> unit is relative to
577
463
the viewport's height. The viewport's width is equal to 100
578
464
'vh' units. When the height of the viewport is changed (for example,
579
-
when the browser window is enlarged), lengths specifed in the 'vh'
465
+
when the browser window is enlarged), lengths specified in the 'vh'
580
466
unit are scaled proportionally.
581
467
582
468
@@ -621,7 +507,7 @@ <h4>The 'calc' function</h4>
621
507
five arithmetic operators (+ and - have lowest precedence, *, /, and
622
508
'mod' have highest precedence) and parentheses.
623
509
624
-
<p>A value is ignored if a division by zero or other mathemathical
510
+
<p>A value is ignored if a division by zero or other mathematical
625
511
errors occur in the calculation.
626
512
627
513
<divclass="example">
@@ -861,7 +747,7 @@ <h3><attr></h3>
861
747
to point to a non-existent document with a generic error
862
748
condition. (i.e. it shouldn't be an FTP URI that causes a DNS
863
749
error, or an HTTP URI that results in a 404, it should be a
0 commit comments