Skip to content

Commit 107d23c

Browse files
committed
[css2] Example and minor fixes
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401246
1 parent 7ec759a commit 107d23c

4 files changed

Lines changed: 20 additions & 25 deletions

File tree

css2/generate.src

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ IMG:before {content: attr(alt)}
237237

238238
<P>Authors should put <span class="propinst-content">'content'</span>
239239
declarations in <span class="index-inst" title="@media"><a
240-
href="media.html@at-media-rule">@media</a></span> rules when
240+
href="media.html#at-media-rule">@media</a></span> rules when
241241
the content requires media consideration. For instance, literal
242242
text may be used for any media group, but images only
243243
apply to the visual, bitmap media groups, and sound files only
@@ -496,13 +496,13 @@ counter is assumed to have been reset to 0 by the root element.
496496

497497
<pre>
498498
H1:before {
499-
content: "Chapter " counter(chapter) ". "
499+
content: "Chapter " counter(chapter) ". ";
500500
counter-increment: chapter; /* Add 1 to chapter */
501501
counter-reset: section; /* Set section to 0 */
502502
}
503503
H2:before {
504-
content: counter(chapter) "." counter(section) " "
505-
counter-increment: section
504+
content: counter(chapter) "." counter(section) " ";
505+
counter-increment: section;
506506
}
507507
</pre>
508508
</div>
@@ -570,7 +570,7 @@ counters. (We assume the style sheet as given in the example above).
570570
&lt;LI&gt;item &lt;!-- increment item[1] (= 3) --&gt;
571571
&lt;OL&gt; &lt;!-- (set item[2] to 0 --&gt;
572572
&lt;LI&gt;item &lt;!-- increment item[2] (= 1) --&gt;
573-
&lt;/OL&gt; &lt;!-- )
573+
&lt;/OL&gt; &lt;!-- ) --&gt;
574574
&lt;OL&gt; &lt;!-- (set item[3] to 0 --&gt;
575575
&lt;LI&gt; &lt;!-- increment item[3] (= 1) --&gt;
576576
&lt;/OL&gt; &lt;!-- ) --&gt;
@@ -724,8 +724,7 @@ has the value 'marker' for content generated by an element with
724724
'display: list-item', a marker box generated for ':before' replaces
725725
the normal list item marker.
726726

727-
<div class="example"><P>
728-
The following example illustrates how markers may
727+
<P>The following example illustrates how markers may
729728
be used to add periods after each numbered list item.
730729
This HTML program and style sheet:</p>
731730

@@ -757,10 +756,8 @@ This HTML program and style sheet:</p>
757756
ii. This is the second item.
758757
iii. This is the third item.
759758
</PRE>
760-
</div>
761759

762-
<div class="example"><P>
763-
This example shows a different horizontal
760+
<P>This next example shows a different horizontal
764761
alignment: the content is centered within a
765762
box of a fixed width. This document:</p>
766763

@@ -796,10 +793,9 @@ box of a fixed width. This document:</p>
796793
(3) This is the
797794
third item.
798795
</PRE>
799-
</div>
800796

801-
<div class="example"><P>
802-
The next example creates markers before and after
797+
798+
<P>The next example creates markers before and after
803799
list items. This document:</p>
804800

805801
<PRE class="html-example">
@@ -835,10 +831,8 @@ smiley gif images here):</p>
835831
:-) second list
836832
item comes second :-(
837833
</PRE>
838-
</div>
839834

840-
<div class="example"><P>
841-
The next example uses markers to number notes (paragraphs).
835+
<P>The next example uses markers to number notes (paragraphs).
842836
The following document:</p>
843837

844838
<pre class="html-example">
@@ -877,7 +871,6 @@ The following document:</p>
877871

878872
This is the end.
879873
</PRE>
880-
</div>
881874

882875
<!-- #include src=properties/marker-offset.srb -->
883876

css2/page.src

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: page.src,v 2.13 1998-03-16 14:30:53 ijacobs Exp $ -->
3+
<!-- $Id: page.src,v 2.14 1998-03-17 05:19:01 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Paged media</TITLE>
@@ -459,7 +459,7 @@ be displayed.
459459
a left or right page as well.
460460

461461
<div class="example">
462-
<p>This example will put all tables on a right hand side landscape
462+
<p>This example will put all tables on a right-hand side landscape
463463
page (named "rotated"):</P>
464464

465465
<pre>
@@ -491,8 +491,8 @@ TABLE {page: rotated}
491491

492492
<pre>
493493
&lt;DIV&gt;
494-
&lt;TABLE>...&lt;/TABLE&gt;
495-
&lt;TABLE>...&lt;/TABLE&gt;
494+
&lt;TABLE&gt;...&lt;/TABLE&gt;
495+
&lt;TABLE&gt;...&lt;/TABLE&gt;
496496
&lt;/DIV&gt;
497497
</pre>
498498
</div>

css2/syndata.src

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 2.38 1998-03-17 03:48:24 ijacobs Exp $ -->
3+
<!-- $Id: syndata.src,v 2.39 1998-03-17 05:19:08 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -1158,12 +1158,14 @@ for both the "style" attribute and the STYLE element.
11581158
For example, we recommend:</em></p>
11591159

11601160
<pre class="html-example">
1161+
&lt;P&gt;
11611162
&lt;SPAN style="voice-family: D\FC rst"&gt;...&lt;/SPAN&gt;
11621163
</pre>
11631164

11641165
<P><em>rather than:</em></p>
11651166

11661167
<pre class="html-example">
1168+
&lt;P&gt;
11671169
&lt;SPAN style="voice-family: D&amp;#FC;rst"&gt;...&lt;/SPAN&gt;
11681170
</pre>
11691171
</div>

css2/tables.src

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: tables.src,v 2.20 1998-03-17 01:18:29 ijacobs Exp $ -->
3+
<!-- $Id: tables.src,v 2.21 1998-03-17 05:19:17 ijacobs Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66
<title>Tables</title>
@@ -672,6 +672,7 @@ through, except where a cell from the first row spans into this
672672
row. The following HTML code and style rules</p>
673673

674674
<PRE>
675+
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"&gt;
675676
&lt;HTML&gt;
676677
&lt;HEAD&gt;
677678
&lt;STYLE type="text/css"&gt;
@@ -688,8 +689,7 @@ row. The following HTML code and style rules</p>
688689
&lt;TD&gt; 3
689690
&lt;TD&gt; 4
690691
&lt;/TR&gt;
691-
&lt;TR&gt;
692-
&lt;/TR&gt;
692+
&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
693693
&lt;/TABLE&gt;
694694
&lt;/BODY&gt;
695695
&lt;/HTML&gt;

0 commit comments

Comments
 (0)