Skip to content

Commit 13731f3

Browse files
committed
Generated. Do not edit!
1 parent 0aaa973 commit 13731f3

5 files changed

Lines changed: 141 additions & 29 deletions

File tree

css2/changes.html

Lines changed: 102 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ <H2 id=since-20110607><a name="q1">C.1 Changes since the Recommendation of 7 Jun
288288
<blockquote>
289289
<p>Boxes in the normal flow belong to a <a name="x0"><span class="index-def"
290290
title="formatting context">formatting context</span></a>, which
291-
<ins>in CSS&nbsp;2.2</ins> may be <ins>table,</ins> block or
291+
<ins>in CSS&nbsp;2</ins> may be <ins>table,</ins> block or
292292
inline<del>, but not both simultaneously</del>. <ins>In future
293293
levels of CSS, other types of formatting context will be
294294
introduced.</ins> <a href="#block-level">Block-level</a> boxes
@@ -787,7 +787,7 @@ <H2 id=since-20110607><a name="q1">C.1 Changes since the Recommendation of 7 Jun
787787

788788
<p><del>Except for table boxes, which are described in a later
789789
chapter, and replaced elements,</del> <ins>In
790-
CSS&nbsp;2.2,</ins> a block-level box is also a block container
790+
CSS&nbsp;2,</ins> a block-level box is also a block container
791791
box <ins>unless it is a table box or the principal box of a
792792
replaced element</ins>. A <dfn >block container box</dfn> either
793793
contains only block-level boxes or establishes an inline
@@ -919,7 +919,7 @@ <H2 id=since-20110607><a name="q1">C.1 Changes since the Recommendation of 7 Jun
919919

920920
<p><ins>However, if no boxes are generated for the element whose
921921
background would be used for the background of the canvas, then
922-
the canvas background is transparent. (in CSS&nbsp;2.2, that is the
922+
the canvas background is transparent. (in CSS&nbsp;2, that is the
923923
case when the element or an ancestor has 'display: none'.)</ins>
924924

925925
<p><ins>Note that, if the element has 'visibility: hidden' but
@@ -953,6 +953,105 @@ <H2 id=since-20110607><a name="q1">C.1 Changes since the Recommendation of 7 Jun
953953

954954

955955

956+
957+
958+
<li id=s.4.1.1e class=change>
959+
<p><span class=updated>[2015-09-05]</span> Malformed declarations
960+
are handled differently when the start of the malformed
961+
declaration conforms to the syntax of an at-rule. In that case,
962+
parsing resumes not at the next semicolon or at the closing curly
963+
brace of the enclosing block, but immediately after that
964+
at-rule. This is expressed by adding the at-rule to the core
965+
syntax for rulesets, as shown below.
966+
967+
<p>In <a href="syndata.html#tokenization" >&ldquo;4.1.1
968+
Tokenization&rdquo;,</a> change the production for ruleset as
969+
follows:
970+
971+
<blockquote>
972+
<pre>
973+
<del>ruleset : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;</del>
974+
<ins>ruleset : selector? '{' S* declaration-list '}' S*;
975+
declaration-list: declaration [ ';' S* declaration-list ]?
976+
| at-rule declaration-list
977+
| /* empty */;</ins></pre>
978+
</blockquote>
979+
980+
<p>In <a href="syndata.html#rule-sets" >&ldquo;4.1.7 Rule sets,
981+
declaration blocks, and selectors&rdquo;,</a> change the second
982+
paragraph as follows:
983+
984+
<blockquote>
985+
<p>A declaration block starts with a left curly brace ({) and
986+
ends with the matching right curly brace (}). In between there
987+
must be a list of zero or more <del>semicolon-separated (;)
988+
declarations</del> <ins>declarations and at-rules. Declarations
989+
must end with a semicolon (;) unless they are last in the
990+
list.</ins>
991+
992+
<p class=note><ins>Note: CSS level&nbsp;2 has no at-rules that
993+
may appear inside rule sets, but such at-rules may be defined in
994+
future levels.</ins>
995+
</blockquote>
996+
997+
<p>In <a href="syndata.html#parsing-errors" >&ldquo;4.2 Rules for
998+
handling parsing errors&rdquo;,</a> change the rule for malformed
999+
declarations as follows:
1000+
1001+
<blockquote>
1002+
<ul>
1003+
<li>
1004+
<p><strong>Malformed declarations.</strong> User agents must
1005+
handle unexpected tokens encountered while parsing a
1006+
declaration by reading until the end of the declaration, while
1007+
observing the rules for matching pairs of (), [], {}, "", and
1008+
'', and correctly handling escapes. For example, a malformed
1009+
declaration may be missing a property name, colon (:), or
1010+
property value.
1011+
1012+
<p><ins>When the UA expects the start of a declaration or
1013+
at-rule (i.e., an IDENT token or an ATKEYWORD token) but finds
1014+
an unexpected token instead, that token is considered to be
1015+
the first token of a malformed declaration. I.e., the rule for
1016+
malformed declarations, rather than malformed statements is
1017+
used to determine which tokens to ignore in that case.</ins>
1018+
1019+
<p>The following are all equivalent:
1020+
1021+
<pre class=example>
1022+
<code>p { color:green }
1023+
<ins>p { @foo { bar: baz } color:green } /* unknown at-rule */</ins>
1024+
p { color:green; color } /* malformed declaration missing ':', value */
1025+
p { color:red; color; color:green } /* same with expected recovery */
1026+
p { color:green; color: } /* malformed declaration missing value */
1027+
p { color:red; color:; color:green } /* same with expected recovery */
1028+
p { color:green; color{;color:maroon} } /* unexpected tokens { } */
1029+
p { color:red; color{;color:maroon}; color:green } /* same with recovery */</code></pre>
1030+
</li>
1031+
</ul>
1032+
</blockquote>
1033+
1034+
<p>And, finally, in <a href="page.html#page-box" >&ldquo;13.2 Page
1035+
boxes: the @page rule&rdquo,</a> remove the following text, which
1036+
is now redundant:
1037+
1038+
<blockquote>
1039+
<p><del>The rules for handling malformed declarations, malformed
1040+
statements, and invalid at-rules inside @page are as defined in
1041+
<a href="syndata.html#parsing-errors" >section&nbsp;4.2,</a>
1042+
with the following addition: when the UA expects the start of a
1043+
declaration or at-rule (i.e., an IDENT token or an ATKEYWORD
1044+
token) but finds an unexpected token instead, that token is
1045+
considered to be the first token of a malformed
1046+
declaration. I.e., the rule for malformed declarations, rather
1047+
than malformed statements is used to determine which tokens to
1048+
ignore in that case.</del>
1049+
</blockquote>
1050+
1051+
1052+
1053+
1054+
9561055
</ul>
9571056

9581057
<hr class="navbar">

css2/cover.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
src="https://www.w3.org/Icons/w3c_home" width="72"></a>
2727

2828
<h1 id="title">Cascading Style Sheets Level 2 Revision 2 (CSS&nbsp;2.2) Specification</h1>
29-
<h2 id="W3C-doctype">W3C Editors' Draft 07 August 2015</h2>
29+
<h2 id="W3C-doctype">W3C Editors' Draft 04 September 2015</h2>
3030

3131
<dl>
3232
<dt>This version:
33-
<dd><a href="http://www.w3.org/TR/2015/ED-CSS22-20150807/">
34-
http://www.w3.org/TR/2015/ED-CSS22-20150807/</a>
33+
<dd><a href="http://www.w3.org/TR/2015/ED-CSS22-20150904/">
34+
http://www.w3.org/TR/2015/ED-CSS22-20150904/</a>
3535
<dt>Latest version:
3636
<dd><a href="http://www.w3.org/TR/CSS22/">
3737
http://www.w3.org/TR/CSS22/</a>
@@ -75,16 +75,16 @@ <h2 id="W3C-doctype">W3C Editors' Draft 07 August 2015</h2>
7575

7676
<!--
7777
<p>Please refer to the <a
78-
href="http://www.w3.org/Style/css2-updates/ED-CSS22-20150807-errata.html"><strong>
78+
href="http://www.w3.org/Style/css2-updates/ED-CSS22-20150904-errata.html"><strong>
7979
errata</strong></a> for this document.
8080
-->
8181

8282
<p>This document is also available in these non-normative formats:
83-
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150807//css2.txt">plain text</a>,
84-
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150807//css2.tgz">gzip'ed tar file</a>,
85-
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150807//css2.zip">zip file</a>,
86-
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150807//css2.ps.gz">gzip'ed PostScript</a>,
87-
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150807//css2.pdf">PDF</a>.
83+
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150904//css2.txt">plain text</a>,
84+
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150904//css2.tgz">gzip'ed tar file</a>,
85+
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150904//css2.zip">zip file</a>,
86+
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150904//css2.ps.gz">gzip'ed PostScript</a>,
87+
<a href="http://www.w3.org/TR/2015/ED-CSS22-20150904//css2.pdf">PDF</a>.
8888
See also <a
8989
href="http://www.w3.org/2005/11/Translations/Query?titleMatch=CSS;lang=any;search1=Submit"><strong>
9090
translations</strong></a>.
@@ -150,17 +150,17 @@ <h2 id=status>Status of this document</h2>
150150
href="http://www.w3.org/TR/">W3C technical reports index at
151151
http://www.w3.org/TR/.</a></em></p>
152152

153-
<!--
154153
<p>This is a copy of the editors' draft for the next revision of the
155154
Recommendation. It is used by the working group as an aid in checking
156155
the text of the errata. It is <em>not</em> an official Working Draft.
157-
-->
158156

157+
<!--
159158
<p>Publication as a First Public Working Draft does not imply endorsement
160159
by the W3C Membership. This is a draft document and may be updated,
161160
replaced or obsoleted by other documents at any time. It is
162161
inappropriate to cite this document as other than work in
163162
progress.</p>
163+
-->
164164

165165
<p>This document was produced by the <a
166166
href="http://www.w3.org/Style/CSS/members">CSS Working Group</a> (part

css2/page.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,6 @@ <h2>13.2 <a name="page-box">Page boxes</a>: the @page rule</h2>
120120
apply. In CSS&nbsp;2.2, page selectors may designate the first page,
121121
all left pages, or all right pages</p>
122122

123-
<P>The rules for handling malformed declarations, malformed
124-
statements, and invalid at-rules inside @page are as defined in <a
125-
href="syndata.html#parsing-errors">section&nbsp;4.2,</a> with the
126-
following addition: when the UA expects the start of a declaration or
127-
at-rule (i.e., an IDENT token or an ATKEYWORD token) but finds an
128-
unexpected token instead, that token is considered to be the first
129-
token of a malformed declaration. I.e., the rule for malformed
130-
declarations, rather than malformed statements is used to determine
131-
which tokens to ignore in that case.
132-
133123
<h3>13.2.1 <a name="page-margins">Page margins</a></h3>
134124

135125
<P>In CSS&nbsp;2.2, only the <a href="box.html#margin-properties">margin

css2/syndata.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ <h3>4.1.1 <a name="tokenization">Tokenization</a></h3>
204204
statement : ruleset | at-rule;
205205
at-rule : ATKEYWORD S* any* [ block | ';' S* ];
206206
block : '{' S* [ any | block | ATKEYWORD S* | ';' S* ]* '}' S*;
207-
ruleset : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;
207+
ruleset : selector? '{' S* declaration-list '}' S*;
208+
declaration-list: declaration [ ';' S* declaration-list ]?
209+
| at-rule declaration-list
210+
| /* empty */;
208211
selector : any+;
209212
declaration : property S* ':' S* value;
210213
property : IDENT;
@@ -528,8 +531,12 @@ <h3>4.1.7 <a name="rule-sets">Rule sets, declaration blocks, and selectors</a></
528531
title="declaration block"><dfn>declaration block</dfn></span></a>
529532
starts with a left curly
530533
brace ({) and ends with the matching right curly brace (}). In between
531-
there must be a list of zero or more semicolon-separated (;)
532-
declarations.
534+
there must be a list of zero or more declarations and at-rules.
535+
Declarations must end with a semicolon (;) unless they are last in the
536+
list.
537+
</p>
538+
<p class=note>Note: CSS level&nbsp;2 has no at-rules that may appear
539+
inside rule sets, but such at-rules may be defined in future levels.
533540
</p>
534541
<p>The <a name="x15"><span class="index-def"
535542
title="selector"><em>selector</em></span></a> (see also the section on <a
@@ -742,11 +749,20 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
742749
until the end of the declaration, while observing the rules for matching
743750
pairs of (), [], {}, "", and '', and correctly handling escapes. For
744751
example, a malformed declaration may be missing a property name, colon (:), or
745-
property value. The following are all equivalent:
752+
property value.
753+
754+
<p>When the UA expects the start of a declaration or at-rule (i.e., an
755+
IDENT token or an ATKEYWORD token) but finds an unexpected token
756+
instead, that token is considered to be the first token of a malformed
757+
declaration. I.e., the rule for malformed declarations, rather than
758+
malformed statements is used to determine which tokens to ignore in
759+
that case.
746760

761+
<p>The following are all equivalent:
747762

748763
<pre class="example"><code>
749764
p { color:green }
765+
p { @foo { bar: baz } color:green } /* unknown at-rule */
750766
p { color:green; color } /* malformed declaration missing ':', value */
751767
p { color:red; color; color:green } /* same with expected recovery */
752768
p { color:green; color: } /* malformed declaration missing value */

default.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,14 @@
774774
.proptable tbody th[rowspan],
775775
.data tbody td[rowspan],
776776
.proptable tbody td[rowspan]{
777-
border-left: 1px solid silver;
777+
border-left: 1px solid silver;
778+
}
779+
780+
.data tbody th[rowspan]:first-child,
781+
.proptable tbody th[rowspan]:first-child,
782+
.data tbody td[rowspan]:first-child,
783+
.proptable tbody td[rowspan]:first-child{
784+
border-left: 0;
778785
border-right: 1px solid silver;
779786
}
780787

0 commit comments

Comments
 (0)