@@ -1207,7 +1207,7 @@ <h3 id="the-region-fragment-property">The region-fragment property</h3>
12071207 < tr >
12081208 < td > ''flow-into: "article"''</ td >
12091209
1210- < td > < code class =" html " > region-1</ code > and < code class =
1210+ < td > < code > region-1</ code > and < code class =
12111211 "html "> region-2</ code > </ td >
12121212
12131213 < td > ''region-fragment: auto''< br >
@@ -1311,51 +1311,48 @@ <h3 id="the-at-region-style-rule">The @region rule</h3>
13111311 < li > < a href ="http://www.w3.org/TR/css3-background/#the-box-shadow "> 'box-shadow' property</ a > </ li >
13121312 < li > < a href ="http://www.w3.org/TR/css3-background/#the-box-decoration-break "> 'box-decoration-break' property</ a > </ li >
13131313 < li > < a href ="http://www.w3.org/TR/CSS2/visudet.html#the-width-property "> 'width' property</ a > </ li >
1314- </ ol >
1315-
1316- < div class ="issue-marker " data-bug_id ="19965 " data-bug_status ="NEW ">
1317- < a href =
1318- "https://www.w3.org/Bugs/Public/show_bug.cgi?id=19965 "> Issue-19965</ a >
1319-
1320- < div class ="issue-details ">
1321- < p class ="short-desc "> Rework region styling example to use color changes</ p >
1322- </ div >
1323- </ div >
1314+ </ ol >
13241315
13251316 < div class ="example " id ="region-style-example ">
13261317 < p > In the following example, the < span > named flow</ span > 'article-flow' flows
13271318 through 'region-1' and 'region-2'.</ p >
13281319 < pre >
1329- <style>
1330- #div-1 {
1320+ <body is="x-region-style-example">
1321+ <div id="div-1">
1322+ <p id="p-1">...</p>
1323+ <p id="p-2">...</p>
1324+ </div>
1325+ </body>
1326+
1327+ <element name="x-region-style-example" extends="body">
1328+ <template>
1329+ <style>
1330+ #div-1 {
13311331 < strong > flow-into: article-flow;</ strong >
1332- }
1333-
1334- #region-1, #region-2 {
1332+ }
1333+
1334+ #region-1, #region-2 {
13351335 < strong > flow-from: article-flow;</ strong >
1336- }
1336+ }
13371337
1338- /* region style "RSA" */
1339- < strong > @region #region-1, #region-2</ strong > {
1338+ /* region style "RSA" */
1339+ < strong > @region #region-1, #region-2</ strong > {
13401340 div {...}
13411341 p {...}
1342- }
1343-
1344- /* region style "RSB" */
1345- < strong > @region #region-1</ strong > {
1346- p {...}
1347- }
1348-
1349- </style>
1342+ }
13501343
1351- <div id="div-1">
1352- <p id="p-1">...</p>
1353- <p id="p-2">...</p>
1354- </div>
1344+ /* region style "RSB" */
1345+ < strong > @region #region-1</ strong > {
1346+ p {
1347+ margin-right: 5em;
1348+ }
1349+ }
1350+ </style>
13551351
1356- <div id="region-1"></div>
1357- <div id="region-2"></div>
1358-
1352+ <div id="region-1"></div>
1353+ <div id="region-2"></div>
1354+ </template>
1355+ </element>
13591356</ pre >
13601357
13611358 < div id ="region_styling_illustration ">
@@ -1384,27 +1381,34 @@ <h3 id="the-at-region-style-rule">The @region rule</h3>
13841381 </ ul >
13851382 </ div >
13861383
1387- < p > The region style ''RSA'' applies to flow content that is laid out in either
1388- 'region-1' or 'region-2'.</ p >
1389-
1390- < p > The first rule set ''div {...}'' applies to all < code class =
1391- "html "> <div></ code > elements that fit partially or fully into 'region-1' or
1392- 'region-2'. < code class ="html "> div-1</ code > is split between 'region-1' and
1393- 'region-2' and gets the style from this style rule.</ p >
1394-
1395- < p > The second rule set ''p {...}'' applies to all < code class =
1396- "html "> <p></ code > elements that fit into 'region-1' or
1397- 'region-2'. In our example, both < code class ="html "> p-1</ code >
1398- and < code class ="html "> p-2</ code > are selected.</ p >
1399-
1400- < p > The region style ''RSB'' applies to flow content that fits in
1401- 'region-1'.</ p >
1402-
1403- < p > The first rule set ''p {...}'' matches < code class ="html "> p-1</ code >
1404- and < code class ="html "> p-2</ code >
1405- because these paragraphs flow into 'region-1'. Only the fragment of
1406- < code class ="html "> p-2</ code > that flows into < code class ="html "> region-1</ code >
1407- is styled with this rule.</ p >
1384+ < p > The region style ''RSA'' applies
1385+ to flow content that is laid out
1386+ in either 'region-1' or 'region-2'.</ p >
1387+
1388+ < p > The first rule set ''div {...}'' applies
1389+ to all < code > <div></ code > elements
1390+ that fit partially or fully
1391+ into 'region-1' or 'region-2'.
1392+ 'div-1' is split between 'region-1'
1393+ and 'region-2' and gets the style
1394+ from this style rule.</ p >
1395+
1396+ < p > The second rule set ''p {...}'' applies
1397+ to all < code > <p></ code > elements
1398+ that fit into 'region-1' or 'region-2'.
1399+ In our example,
1400+ both 'p-1'and 'p-2' are selected.</ p >
1401+
1402+ < p > The region style ''RSB'' applies
1403+ to flow content that fits in 'region-1'.</ p >
1404+
1405+ < p > The first rule set ''p {...}''
1406+ matches 'p-1' and 'p-2'
1407+ because these paragraphs
1408+ flow into 'region-1'.
1409+ Only the fragment of 'p-2'
1410+ that flows into 'region-1'
1411+ is styled with this rule.</ p >
14081412 </ div >
14091413
14101414
0 commit comments