4040
4141 < h1 id =css-exclusions-module > CSS Exclusions and Shapes Module Level 3</ h1 >
4242
43- < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 21 April 2012</ h2 >
43+ < h2 class ="no-num no-toc " id =longstatus-date > Editor's Draft 25 April 2012</ h2 >
4444
4545 < dl >
4646 < dt > This version:
4747
4848 < dd > < a
4949 href ="http://dev.w3.org/csswg/css3-exclusions/ "> http://dev.w3.org/csswg/css3-exclusions/</ a > </ dd >
50- <!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-exclusions-20120421 /">http://www.w3.org/TR/2012/WD-css3-exclusions-20120421 /</a></dd>-->
50+ <!--<dd><a href="http://www.w3.org/TR/2012/ED-css3-exclusions-20120425 /">http://www.w3.org/TR/2012/WD-css3-exclusions-20120425 /</a></dd>-->
5151
5252 < dt > Latest version:
5353
@@ -655,10 +655,10 @@ <h4 id=wrap-flow-property><span class=secno>3.1.1. </span>The ‘<a
655655
656656<style type="text/css">
657657#grid {
658- width: 100em ;
659- height: 100em ;
658+ width: 30em ;
659+ height: 30em ;
660660 display: grid;
661- grid-columns: 50% 20% 20 %;
661+ grid-columns: 50% 25% 25 %;
662662 grid-rows: 40% 20% 40%;
663663}
664664
@@ -677,6 +677,12 @@ <h4 id=wrap-flow-property><span class=secno>3.1.1. </span>The ‘<a
677677</style>
678678</ pre >
679679
680+ < p > The following figures illustrate the visual rendering for different
681+ values of the ‘< a href ="#wrap-flow "> < code
682+ class =property > wrap-flow</ code > </ a > ’ property. The gray grid lines
683+ are marking the grid cells. and the blue area is the exclusion box
684+ (positioned by the grid).</ p >
685+
680686 < table class =example-table >
681687 < tbody >
682688 < tr >
@@ -706,14 +712,14 @@ <h4 id=wrap-flow-property><span class=secno>3.1.1. </span>The ‘<a
706712 < tr >
707713 < td > < code class =html > #exclusion{ wrap-flow: maximum; }</ code >
708714
709- < td > < code class =html > #exclusion{ wrap-flow: maximum ; }</ code >
715+ < td > < code class =html > #exclusion{ wrap-flow: minimum ; }</ code >
710716
711717 < tr >
712718 < td > < img alt ="Example rendering for wrap-side: maximum "
713- src ="images/exclusion_wrap_side_maximum_L .png ">
719+ src ="images/exclusion_wrap_side_maximum .png ">
714720
715721 < td > < img alt ="Example rendering for wrap-side: maximum "
716- src ="images/exclusion_wrap_side_maximum_R .png ">
722+ src ="images/exclusion_wrap_side_minimum .png ">
717723
718724 < tr >
719725 < td > < code class =html > #exclusion{ wrap-flow: clear; }</ code >
@@ -1086,8 +1092,8 @@ <h3 id=exclusions-order><span class=secno>3.4. </span>Exclusions order</h3>
10861092 descendant of the same containing block. The ‘< code
10871093 class =property > z-index</ code > ’ property can be used to change the
10881094 ordering of < a
1089- href ="http://www.w3.org/TR/CSS2/visuren.html#choose-position "
1090- positioned > </ a > exclusion boxes (see < a href ="#CSS21 "
1095+ href ="http://www.w3.org/TR/CSS2/visuren.html#choose-position "> positioned </ a >
1096+ exclusion boxes (see < a href ="#CSS21 "
10911097 rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > ). Statically positioned
10921098 exclusions are not affected by the ‘< code
10931099 class =property > z-index</ code > ’ property and thus follow the painting
@@ -1259,19 +1265,53 @@ <h4 id=exclusions-processing-model-example><span class=secno>3.5.6.
12591265
12601266 < div class =example >
12611267 < pre class =html > <html>
1262- <body>
1263- <div id="d1" style="position:relative">
1264- Lorem ipsusm ...
1265- <p id="e1" style="wrap-flow: both;position:absolute; left:50%; top:50%;
1266- width:40%;height:40%;
1267- margin-left:-20%;margin-right:-20%" ></p>
1268- </div>
1269- <div id="d2" style="width:100%;height:auto;position:static">
1270- Lorem ipsusm ...
1271- <p id="e2" style="wrap-flow: both;position:absolute; right:5ex; top:1em;
1272- width:12ex;height:10em;" ></p>
1273- </div>
1274- </body>
1268+ <style>
1269+ #d1 {
1270+ position:relative;
1271+ height: auto;
1272+ color: #46A4E9;
1273+ border: 1px solid gray;
1274+ }
1275+
1276+ #e1 {
1277+ -webkit-wrap-flow: both;
1278+ position: absolute;
1279+ left: 50%;
1280+ top: 50%;
1281+ width: 40%;
1282+ height: 40%;
1283+ border: 1px solid red;
1284+ margin-left: -20%;
1285+ margin-top: -20%;
1286+ }
1287+
1288+ #d2 {
1289+ position: static;
1290+ width: 100%;
1291+ height: auto;
1292+ color: #808080;
1293+ }
1294+
1295+ #e2 {
1296+ -webkit-wrap-flow: both;
1297+ position: absolute;
1298+ right: 5ex;
1299+ top: 1em;
1300+ width: 12ex;
1301+ height: 10em;
1302+ border: 1px solid lime;
1303+ }
1304+ </style>
1305+ <body>
1306+ <div id="d1">
1307+ Lorem ipsusm ...
1308+ <p id="e1"></p>
1309+ </div>
1310+ <div id="d2">
1311+ Lorem ipsusm ...
1312+ <p id="e2" ></p>
1313+ </div>
1314+ </body>
12751315</html></ pre >
12761316 </ div >
12771317
@@ -1513,14 +1553,21 @@ <h3 id=relation-to-box-model-and-float-behavior><span class=secno>4.1.
15131553 box.
15141554
15151555 < div class =example >
1516- < p > CSS ‘< code class =property > shape</ code > ’ and CSS box model
1517- relation.</ p >
1556+ < p > CSS ‘< a href ="#shape-outside "> < code
1557+ class =property > shape-outside</ code > </ a > ’ and CSS box model
1558+ relation: the red box illustrates the exclusion element's content box,
1559+ which is unmodified and subject to normal CSS positioning (here absolute
1560+ positioning).</ p >
15181561
15191562 < pre > < code class =html >
15201563<style type="text/css">
15211564 .exclusion {
15221565 wrap-flow: both;
15231566 position: absolute;
1567+ top: 25%;
1568+ left: 25%;
1569+ width: 50%;
1570+ height: 50%;
15241571 shape-outside: circle(50%, 50%, 50%);
15251572 border: 1px solid red;
15261573 }
@@ -1535,6 +1582,45 @@ <h3 id=relation-to-box-model-and-float-behavior><span class=secno>4.1.
15351582 class =singleImgExample src ="images/shapes_CSS2.1_MBP.png "
15361583 style ="max-width:40% "> </ div >
15371584
1585+ < div class =example >
1586+ < p > In the following example the left and right floating < code
1587+ class =html > div</ code > elements specify a triangular shape using the
1588+ ‘< a href ="#shape-outside "> < code
1589+ class =property > shape-outside</ code > </ a > ’ property.</ p >
1590+
1591+ < pre > < code class =html >
1592+ <div style="text-align:center;">
1593+ <div id="float-left"></div>
1594+ <div id="float-right"></div>
1595+ <div>
1596+ Sometimes a web page's text content appears to be
1597+ funneling your attention towards a spot on the page
1598+ to drive you to follow a particular link. Sometimes
1599+ you don't notice.
1600+ </div>
1601+ </div>
1602+
1603+ <style type="text/css">
1604+ #float-left {
1605+ wrap-flow: right
1606+ shape-outside: polygon(0,0 100%,100% 0,100%);
1607+ float: left;
1608+ width: 40%;
1609+ height: 12ex;
1610+ }
1611+
1612+ #float-right {
1613+ wrap-flow: left;
1614+ shape-outside: polygon(100%,0 100%,100% 0,100%);
1615+ float: right;
1616+ width: 40%;
1617+ height: 12ex;
1618+ }
1619+ </style>
1620+ </div></ code > </ pre >
1621+ < img alt ="Using the shape-outside property with a float "
1622+ class =singleImgExample src ="images/float-shape-outside.png "> </ div >
1623+
15381624 < h3 id =shapes-from-svg-syntax > < span class =secno > 4.2. </ span > Shapes from SVG
15391625 Syntax</ h3 >
15401626
0 commit comments