Skip to content

Commit 643b190

Browse files
committed
revising text and examples on regions and exclusions
1 parent 71f733a commit 643b190

1 file changed

Lines changed: 22 additions & 14 deletions

File tree

css3-gcpm/Overview.src.html

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3027,7 +3027,7 @@ <h3>Pull-quotes</h3>
30273027

30283028
<h3>Exclusions based on images</h3>
30293029

3030-
3030+
<p>Exclusions are often based on shapes found in images. In this specification, the background image carries the shape, around which text is wrapped. The new property 'background-exclude-level' indicates a level in the alpha channel of the background image(s) that defines the shape.
30313031

30323032

30333033
<div class=example>
@@ -3038,12 +3038,11 @@ <h3>Exclusions based on images</h3>
30383038
padding: 4em;
30393039
columns: 15em;
30403040
background: url(nicecar.jpg);
3041-
background-exclude: 0.5;
3041+
background-exclude-level: 0.5;
30423042
}
30433043
article h1 { column-span: all } /* Bonneville Speedway */
30443044
</pre>
30453045

3046-
30473046
</div>
30483047

30493048
<div class=example>
@@ -3071,7 +3070,9 @@ <h3>Exclusions based on images</h3>
30713070
background: repeat-y url(zigzag.png);
30723071
background-exclude-level: 0.5;
30733072
}
3074-
3073+
article h1 {
3074+
column-span: all;
3075+
}
30753076
</pre>
30763077

30773078
</div>
@@ -3080,6 +3081,8 @@ <h3>Exclusions based on images</h3>
30803081

30813082
<h3>Exclusions based on shapes</h3>
30823083

3084+
<p class=issue>Is this needed?
3085+
30833086
<div class=example>
30843087
<img src=heart1.png>
30853088
<pre>
@@ -3173,20 +3176,24 @@ <h3>Turning columns into regions</h3>
31733176
<img alt="sample rendering" src=regions.png>
31743177

31753178
<pre>
3176-
article { columns: 3 }
3177-
img { column-span: 2; width: 100%; float: top }
3178-
article::column(1) { /* selects column 1 */
3179-
column-span: 2;
3180-
float: top;
3181-
visibility: collapse; /* so that column 2 moves in */
3182-
height: 3em; /* or something */
3183-
}
3179+
article { columns: 3 }
3180+
img { column-span: 2; width: 100%; float: top }
3181+
article::column(1) { /* selects column 1 */
3182+
column-span: 2;
3183+
float: top;
3184+
visibility: collapse; /* so that column 2 moves in */
3185+
height: 3em; /* or something */
3186+
}
3187+
3188+
&lt;article>
3189+
&lt;img ...>
3190+
&lt;p>... &lt;p>... &lt;p>...
3191+
&lt;/article>
31843192
</pre>
31853193
</div>
31863194

3187-
3195+
<!--
31883196
<div class=example>
3189-
31903197
<pre>
31913198
article { columns: 14em; }
31923199
article::column(1) {
@@ -3197,6 +3204,7 @@ <h3>Turning columns into regions</h3>
31973204
}
31983205
</pre>
31993206
</div>
3207+
-->
32003208

32013209

32023210

0 commit comments

Comments
 (0)