Skip to content

Commit cacb181

Browse files
committed
fixing spelling mistakes
1 parent d407fe8 commit cacb181

1 file changed

Lines changed: 13 additions & 134 deletions

File tree

css3-values/Overview.src.html

Lines changed: 13 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -51,77 +51,6 @@ <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
5151
</div>
5252

5353

54-
<!--
55-
56-
[css3-values] cycle() values?
57-
58-
From: L. David Baron <dbaron@dbaron.org>
59-
Date: Thu, 30 Mar 2006 01:20:00 -0800
60-
61-
I'd like to resurrect an old proposal for addition to css3-values [1]:
62-
http://lists.w3.org/Archives/Public/www-style/1999May/0067
63-
http://lists.w3.org/Archives/Public/www-style/1999Jun/0026
64-
This is particularly useful for styling HTML's UL and EM elements.
65-
66-
Proposed text that could be used in the specification is the following:
67-
68-
=====
69-
70-
The cycle() expression allows descendant elements to cycle over a list
71-
of values instead of inheriting the same value. The syntax of the
72-
cycle() expression is:
73-
74-
cycle( <value> [, <value> ]*)
75-
76-
where <value> is a CSS value that is valid where the expression is
77-
placed. If any of the values inside are not valid, then the entire
78-
cycle() expression is invalid.
79-
80-
The value returned by cycle() must be determined by comparing the
81-
inherited value I (the computed value on the parent, or, for the root,
82-
the initial value) to the computed values C[n] returned by the n-th
83-
argument to cycle(). For the earliest C[n] such that C[n] == I, the
84-
value returned by cycle is C[n+1]. However, if this C[n] is the last
85-
value, or if there are no C[n] that equal I, the computed value of the
86-
first value is returned instead.
87-
88-
Example 1:
89-
90-
/* make em elements italic, but make them normal if they're inside
91-
something that's italic */
92-
em { font-style: cycle(italic, normal); }
93-
94-
Example 2:
95-
96-
/* cycle between markers for nested lists, so that the top level has
97-
disk markers, but nested lists use circle, square, box, and then
98-
(for the 5th list deep) repeat */
99-
ul { list-style-type: disk; }
100-
li > ul { list-style-type: cycle(disk, circle, square, box); }
101-
102-
=====
103-
104-
It could also be used in other interesting ways - probably some bizarre
105-
ones that I haven't even thought of yet. Although I admit I have
106-
already thought of:
107-
list-style-type: cycle(cycle(disc,disc,circle,circle), cycle(disc,circle),
108-
cycle(square,square,box,box), cycle(square,box));
109-
Understanding this is left as an exercise to the reader.
110-
111-
112-
=======================================================
113-
http://lists.w3.org/Archives/Public/www-style/2009Mar/0065.html
114-
115-
116-
117-
- RESOLVED: URLs inside functional notation where URL is expected should be able
118-
to take either url() or bare strings (like @import), preference for
119-
examples is bare strings.
120-
121-
122-
-->
123-
124-
12554
<h2 class="no-num no-toc" id="abstract">Abstract</h2>
12655

12756
<p>This CSS3 module describes the various values and units that CSS
@@ -173,7 +102,7 @@ <h2>Introduction</h2>
173102
<p>By setting property values on elements in a document, style sheets
174103
express the appearance of the document. In order to express rich
175104
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
177106
can be used in CSS style sheets.
178107

179108

@@ -239,7 +168,7 @@ <h3>Numbers with unit identifiers</h3>
239168

240169
<h3>Identifiers</h3>
241170

242-
<p>An <dfn>identifer</dfn> is an seqence of characters. Identifiers
171+
<p>An <dfn>identifier</dfn> is an sequence of characters. Identifiers
243172
cannot start with a digit, and there are other restrictions
244173
[[!CSS3SYN]] on what characters an identifier can contain. Identifiers
245174
must not be quoted.</p>
@@ -258,10 +187,10 @@ <h3>Strings</h3>
258187

259188
<div class=example>
260189
<pre>
261-
content: &#34;this is a &#39;string&#39;&#34;;
262-
content: &#34;this is a \"string\"&#34;;
263-
content: &#39;this is a &#34;string&#34;&#39;;
264-
content: &#39;this is a \&#39;string\&#39;&#39;;
190+
content: "this is a 'string'";
191+
content: "this is a \"string\"";
192+
content: 'this is a "string"';
193+
content: 'this is a \'string\'';
265194
</pre>
266195
</div>
267196

@@ -271,7 +200,7 @@ <h3>Strings</h3>
271200
CSS). See the <span class="property">'content'</span> property for an
272201
example.</p>
273202

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
275204
other reasons, but in such a case the newline itself has to be escaped
276205
with a backslash (\). The newline is subsequently removed from the
277206
string. For instance, the following two selectors are exactly the
@@ -298,10 +227,8 @@ <h3>Functional notation</h3>
298227
(',') with optional whitespace before and after the comma.
299228

300229
<div class="example">
301-
<pre>
302230
background: url(http://www.example.org/image);
303231
color: rgb(100, 200, 50 );
304-
</pre>
305232
</div>
306233

307234
<p>Some properties accept space- or comma-separated lists of values. A value
@@ -310,47 +237,6 @@ <h3>Functional notation</h3>
310237
value is a <dfn>simple value</dfn>.
311238

312239

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( &lt;value> [, &lt;value> ]*)
321-
</pre>
322-
323-
where &lt;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-
<div class="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-
<div class="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-
354240
<h2>Keywords</h2>
355241

356242
<p>In the value definition fields, keywords appear literally. Keywords are identifiers.</p>
@@ -568,15 +454,15 @@ <h5>The 'vw' unit</h5>
568454
<p>If the width of the viewport is 200mm, the font size of <code
569455
class="html">h1</code> elements will be 16mm ((8&times;200)/100). When
570456
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.
573459

574460
<h5>The 'vh' unit</h5>
575461

576462
<p>The <dfn title="vh (unit)">vh</dfn> unit is relative to
577463
the viewport's height. The viewport's width is equal to 100
578464
'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'
580466
unit are scaled proportionally.
581467

582468

@@ -621,7 +507,7 @@ <h4>The 'calc' function</h4>
621507
five arithmetic operators (+ and - have lowest precedence, *, /, and
622508
'mod' have highest precedence) and parentheses.
623509

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
625511
errors occur in the calculation.
626512

627513
<div class="example">
@@ -861,7 +747,7 @@ <h3>&lt;attr&gt;</h3>
861747
to point to a non-existent document with a generic error
862748
condition. (i.e. it shouldn't be an FTP URI that causes a DNS
863749
error, or an HTTP URI that results in a 404, it should be a
864-
non-descript error condition.)
750+
nondescript error condition.)
865751

866752
<dt>integer
867753

@@ -1067,13 +953,6 @@ <h3 id="uris">&lt;url&gt;</h3>
1067953
<p>User agents may vary in how they handle URIs that designate unavailable or
1068954
inapplicable resources.</p>
1069955

1070-
1071-
<p>URLs inside functional notation where URL is expected should be
1072-
able to take either url() or bare strings.
1073-
1074-
1075-
<!-- (like @import), preference for examples is bare strings. -->
1076-
1077956
<h3>&lt;image&gt;</h3>
1078957

1079958
<p>TBD.
@@ -1209,7 +1088,7 @@ <h2>Specified, computed, used, and actual values</h2>
12091088
result of a three-step calculation. First, cascading and inheritance
12101089
yields the <em>specified value</em> [[!CSS3CASCADE]]. Second, relative
12111090
values are computed into absolute values as far as possible without
1212-
formatting the document, therby yielding the <em>computed value</em>.
1091+
formatting the document, thereby yielding the <em>computed value</em>.
12131092
Finally, the computed value is transformed to the <em>actual
12141093
value</em> in the layout process.</p>
12151094

0 commit comments

Comments
 (0)