Skip to content

Commit 9b833cf

Browse files
committed
[css-gcpm] adding whitespace around pre elements to fix validation errors after bikeshedding
1 parent 69b12f3 commit 9b833cf

2 files changed

Lines changed: 32 additions & 13 deletions

File tree

css-gcpm/Overview.html

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -261,31 +261,36 @@ <h5 class="heading settled heading" data-level=1.1.1.1 id=content-function-heade
261261

262262

263263
<p>Whenever the value of the element changes, the value of the named string(s) is updated. User agents must be able to recall many values of the named string, as the <a class=css data-link-type=maybe href=#funcdef-string title=string()>string()</a> function can return past, current, or future values of the assignment.
264-
<div class=example>
265-
HTML:
264+
<div class=example><p></p>
265+
266+
<p>HTML:</p>
267+
266268
<pre>&lt;h1&gt;Loomings&lt;/h1&gt;
269+
</pre>
267270

271+
<p>CSS:</p>
268272

269-
<p>CSS:
270273
<pre>h1::before { content: 'Chapter ' counter(chapter); }
271274
h1 { string-set: header content(before) ':' content(text); }
272275
h1::after { content: '.'; }
273-
274-
276+
</pre>
275277

276278
<p>The value of the named string “header” will be “Chapter 1: Loomings”.
277-
</pre></pre></div><p></p>
279+
</div><p></p>
278280

279281
<div class=example>
280282
HTML:
283+
281284
<pre>&lt;section title="Loomings"&gt;
282285
</pre>
283-
<p>CSS:
284-
<pre>section { string-set: header attr(title) }
285286

287+
<p>CSS:</p>
288+
289+
<pre>section { string-set: header attr(title) }
290+
</pre>
286291

287292
<p>The value of the “header” string will be “Loomings”.
288-
</pre></div><p></p>
293+
</div><p></p>
289294

290295

291296
<h4 class="heading settled heading" data-level=1.1.2 id=using-named-strings><span class=secno>1.1.2 </span><span class=content>
@@ -704,9 +709,12 @@ <h3 class="heading settled heading" data-level=3.1 id=document-page-selectors><s
704709
<div class=example>
705710
<pre>
706711
@page :nth(1)
707-
</pre> This selects the first page of the document. <pre>@page :nth(2n)
708-
</pre> This selects all even document pages.
709-
</div>
712+
</pre>
713+
714+
<p>This selects the first page of the document.
715+
<pre>
716+
@page :nth(2n)
717+
</pre> This selects all even document pages. </div><p></p>
710718

711719

712720

css-gcpm/Overview.src.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,15 @@ <h5 id="content-function-header">The ''content()'' function</h5>
104104

105105
Whenever the value of the element changes, the value of the named string(s) is updated. User agents must be able to recall many values of the named string, as the ''string()'' function can return past, current, or future values of the assignment.
106106
<div class="example">
107+
107108
HTML:
109+
108110
<pre>
109111
&lt;h1>Loomings&lt;/h1>
110112
</pre>
113+
111114
CSS:
115+
112116
<pre>
113117
h1::before { content: 'Chapter ' counter(chapter); }
114118
h1 { string-set: header content(before) ':' content(text); }
@@ -120,13 +124,17 @@ <h5 id="content-function-header">The ''content()'' function</h5>
120124

121125
<div class="example">
122126
HTML:
127+
123128
<pre>
124129
&lt;section title="Loomings">
125130
</pre>
131+
126132
CSS:
133+
127134
<pre>
128135
section { string-set: header attr(title) }
129136
</pre>
137+
130138
The value of the “header” string will be “Loomings”.
131139
</div>
132140

@@ -681,7 +689,10 @@ <h3 id="document-page-selectors">
681689
<div class="example">
682690
<pre>
683691
@page :nth(1)
684-
</pre> This selects the first page of the document. <pre>
692+
</pre>
693+
694+
This selects the first page of the document.
695+
<pre>
685696
@page :nth(2n)
686697
</pre> This selects all even document pages.
687698
</div>

0 commit comments

Comments
 (0)