Skip to content

Commit feaed4f

Browse files
committed
[css-overflow] Markup fixups
1 parent 62ac866 commit feaed4f

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

css-overflow/Overview.bs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ the ''continue/fragments'' value of the 'continue' property.
585585
</p>
586586
587587
<div class="example">
588-
<table class="source-demo-pair"><tr><td><pre>&lt;!DOCTYPE HTML&gt;
588+
<table class="source-demo-pair"><tr><td>
589+
<pre><code highlight="html">&lt;!DOCTYPE HTML&gt;
589590
&lt;title&gt;Breaking content into
590591
equal-sized cards&lt;/title&gt;
591592
&lt;style&gt;
@@ -612,7 +613,7 @@ the ''continue/fragments'' value of the 'continue' property.
612613
another one to be created. The second
613614
card is created just like it's the
614615
next sibling of the first.
615-
&lt;/div&gt;</pre></td><td>
616+
&lt;/div&gt;</code></pre></td><td>
616617
<div class="in-cards-demo">In this example, the text in the<br>div is broken into a series of<br>cards. These cards all have the<br>same style. The presence of<br>enough content to overflow<br>one of the cards causes another</div>
617618
<div class="in-cards-demo">one to be created. The second<br>card is created just like it's the<br>next sibling of the first.</div>
618619
</td></tr></table>
@@ -712,7 +713,8 @@ the ''continue/fragments'' value of the 'continue' property.
712713
</p>
713714
714715
<div class="example">
715-
<table class="source-demo-pair"><tr><td><pre>&lt;!DOCTYPE HTML&gt;
716+
<table class="source-demo-pair"><tr><td>
717+
<pre><code highlight="html">&lt;!DOCTYPE HTML&gt;
716718
&lt;style&gt;
717719
.bouncy-columns {
718720
continue: fragments;
@@ -734,7 +736,7 @@ the ''continue/fragments'' value of the 'continue' property.
734736
&lt;/style&gt;
735737
&lt;div class="bouncy-columns"&gt;
736738
<i>...</i>
737-
&lt;/div&gt;</pre></td><td>
739+
&lt;/div&gt;</code></pre></td><td>
738740
<div class="bouncy-columns-demo one">In this<br>example, the<br>text in the div<br>is broken into<br>a series of<br>columns. The<br>author<br>probably</div>
739741
<div class="bouncy-columns-demo two">intended the<br>text to fill two<br>columns. But<br>if it happens to<br>fill three<br>columns, the<br>third column is<br>still created. It</div>
740742
<div class="bouncy-columns-demo">just doesn't<br>have any<br>fragment-specific<br>styling because<br>the author<br>didn't give it<br>any.</div>
@@ -810,7 +812,8 @@ the ''continue/fragments'' value of the 'continue' property.
810812
</p>
811813
812814
<div class="example">
813-
<table class="source-demo-pair"><tr><td><pre>&lt;!DOCTYPE HTML&gt;
815+
<table class="source-demo-pair"><tr><td>
816+
<pre><code highlight="html">&lt;!DOCTYPE HTML&gt;
814817
&lt;style&gt;
815818
.article {
816819
continue: fragments;
@@ -827,7 +830,7 @@ the ''continue/fragments'' value of the 'continue' property.
827830
&lt;/style&gt;
828831
&lt;div class="article"&gt;
829832
The &lt;code&gt;font-size&lt;/code&gt; property<i>...</i>
830-
&lt;/div&gt;</pre></td><td>
833+
&lt;/div&gt;</code></pre></td><td>
831834
<div class="article-font-inherit-demo one">The <code>font-size</code> property<br>specified on the fragment<br>is inherited into the</div>
832835
<div class="article-font-inherit-demo two">descendants of the fragment.<br>This means that inherited<br>properties can be used<br>reliably on a fragment, as in<br>this example.</div>
833836
</td></tr></table>
@@ -884,7 +887,8 @@ the ''continue/fragments'' value of the 'continue' property.
884887
</ol>
885888
886889
<div class="example">
887-
<table class="source-demo-pair"><tr><td><pre>&lt;!DOCTYPE HTML&gt;
890+
<table class="source-demo-pair"><tr><td>
891+
<pre><code highlight="html">&lt;!DOCTYPE HTML&gt;
888892
&lt;style&gt;
889893
.dark-columns {
890894
continue: fragments;
@@ -916,7 +920,7 @@ the ''continue/fragments'' value of the 'continue' property.
916920
&lt;/style&gt;
917921
&lt;div class="dark-columns"&gt;
918922
<i>...</i>
919-
&lt;/div&gt;</pre></td><td>
923+
&lt;/div&gt;</code></pre></td><td>
920924
<div class="dark-columns-demo one">In this<br><a href="http://en.wiktionary.org/wiki/example">example</a>, the<br>text flows<br>from one<br>light-colored<br>fragment into<br>another<br>dark-colored</div>
921925
<div class="dark-columns-demo two">fragment. We<br>therefore want<br>different styles<br>for <a href="http://www.w3.org/Provider/Style/IntoContext.html">hyperlinks</a><br>in the different<br>fragments.</div>
922926
</td></tr></table>
@@ -999,7 +1003,8 @@ so that you only need to reach for one property rather than 2 to get
9991003
that effect.
10001004
10011005
<div class="example">
1002-
<table class="source-demo-pair"><tr><td><pre>&lt;!DOCTYPE HTML&gt;
1006+
<table class="source-demo-pair"><tr><td>
1007+
<pre><code highlight="html">&lt;!DOCTYPE HTML&gt;
10031008
&lt;style&gt;
10041009
.article {
10051010
continue: fragments;
@@ -1018,7 +1023,7 @@ that effect.
10181023
&lt;/style&gt;
10191024
&lt;div class="article"&gt;
10201025
<i>...</i>
1021-
&lt;/div&gt;</pre></td><td>
1026+
&lt;/div&gt;</code></pre></td><td>
10221027
<div class="article-max-lines-demo one">The max-lines property allows<br>authors to use a larger font for the first<br>few lines of an article. Without the</div>
10231028
<div class="article-max-lines-demo two">max-lines property, authors<br>might have to use the<br>'height' property instead, but<br>that would leave a slight gap<br>if the author miscalculated<br>how much height a given<br>number of lines would<br>occupy (which might be</div>
10241029
<div class="article-max-lines-demo three">particularly hard if the author<br>didn't know what text would<br>be filling the space, exactly<br>what font would be used, or<br>exactly which platform's font<br>rendering would be used to<br>display the font).</div>

0 commit comments

Comments
 (0)