@@ -1647,50 +1647,62 @@ <h2 id=multi-column-regions><span class=secno>4. </span>Multi-column
16471647 < p > The following example:
16481648
16491649 < pre >
1650- <style>
1651- #multi-col {
1652- column-count: 2;
1653- flow-from: article;
1654- height: 6em;
1655- column-gap: 1em;
1656- }
1657-
1658- #remainder {
1659- flow-from: article;
1660- height: auto;
1661- }
1662- </style>
1650+ <body is="x-multicol-region">
1651+ <article>...</article>
1652+ </body>
16631653
1664- <article>...</article>
1665- <div id="multicol"></div>
1666- <div id="remainder"></div></ pre >
1654+ <element name="x-multicol-region" extends="body">
1655+ <template>
1656+ <style>
1657+ #multi-col {
1658+ column-count: 2;
1659+ flow-from: article;
1660+ height: 6em;
1661+ column-gap: 1em;
1662+ }
1663+
1664+ #remainder {
1665+ flow-from: article;
1666+ height: auto;
1667+ }
1668+ </style>
1669+ <div id="multicol"></div>
1670+ <div id="remainder"></div>
1671+ </template>
1672+ </element></ pre >
16671673
16681674 < p > is equivalent in rendering to, for example:
16691675
16701676 < pre >
1671- <style>
1672- #flex {
1673- display: flex;
1674- flex-pack: justify;
1675- height: 6em;
1676- }
1677- #flex > div {
1678- flow-from: article;
1679- width: calc(50% - 0.5em);
1680- }
1681-
1682- #remainder {
1683- flow-from: article;
1684- height: auto;
1685- }
1686- </style>
1677+ <body is="x-single-col-regions">
1678+ <article>...</article>
1679+ </body>
16871680
1688- <article>...</article>
1689- <div id="flex">
1690- <div />
1691- <div />
1692- </div>
1693- <div id="remainder"></div></ pre >
1681+ <element name="x-single-col-regions" extends="body">
1682+ <template>
1683+ <style>
1684+ #flex {
1685+ display: flex;
1686+ flex-pack: justify;
1687+ height: 6em;
1688+ }
1689+ #flex > div {
1690+ flow-from: article;
1691+ width: calc(50% - 0.5em);
1692+ }
1693+
1694+ #remainder {
1695+ flow-from: article;
1696+ height: auto;
1697+ }
1698+ </style>
1699+ <div id="flex">
1700+ <div />
1701+ <div />
1702+ </div>
1703+ <div id="remainder"></div>
1704+ </template>
1705+ </element></ pre >
16941706 </ div >
16951707
16961708 < p > Overflow of multicol regions is mostly handled according to the same
@@ -2512,53 +2524,59 @@ <h3 id=regions-visual-formatting-examples><span class=secno>7.4.
25122524
25132525 < div class =example >
25142526 < pre >
2515- <style>
2516- article {
2517- flow-into: article;
2518- }
2519-
2520- #rA, #rB, #rC {
2521- flow-from: article;
2522- height: auto;
2523-
2524- margin: 1em 1em 0em 1em;
2525- padding: 1em;
2526- border: 3px solid #46A4E9;
2527- }
2528-
2529- #rA {
2530- width: auto;
2531- }
2532-
2533- #rB {
2534- float: left;
2535- width: 15em;
2536- max-height: 150px;
2537- }
2538-
2539- #rC {
2540- float: right;
2541- width: 12em;
2542- }
2543-
2544- #main-flow {
2545- padding: 0em 1em 0em 1em;
2546- }
2547-
2548- </style>
2549- <body>
2527+ <body is="x-formatting-example">
25502528 <article>
25512529 <p style="break-after:region;">I am not a ... </p>
25522530 <p>...</p>
25532531 </article>
2554- <div id="rA"></div>
2555- <div id="rB"></div>
2556- <div id="rC"></div>
25572532
25582533 <div id="main-flow">
25592534 <p>Lorem ipsum dolor ...</p>
25602535 </div>
2561- </body>
2536+ </body>
2537+
2538+ <element name="x-formatting-example" extends="body">
2539+ <template>
2540+ <style>
2541+ article {
2542+ flow-into: article;
2543+ }
2544+
2545+ #rA, #rB, #rC {
2546+ flow-from: article;
2547+ height: auto;
2548+
2549+ margin: 1em 1em 0em 1em;
2550+ padding: 1em;
2551+ border: 3px solid #46A4E9;
2552+ }
2553+
2554+ #rA {
2555+ width: auto;
2556+ }
2557+
2558+ #rB {
2559+ float: left;
2560+ width: 15em;
2561+ max-height: 150px;
2562+ }
2563+
2564+ #rC {
2565+ float: right;
2566+ width: 12em;
2567+ }
2568+
2569+ #main-flow {
2570+ padding: 0em 1em 0em 1em;
2571+ }
2572+ </style>
2573+
2574+ <div id="rA"></div>
2575+ <div id="rB"></div>
2576+ <div id="rC"></div>
2577+ <content></content>
2578+ </template>
2579+ </element>
25622580 </ pre >
25632581 </ div >
25642582
0 commit comments