@@ -846,70 +846,17 @@ Spanning columns</h2>
846846 In paged media spanning elements are honored on all pages.
847847 In this example, the first three paragraphs have column breaks after them.
848848 An spanning <code> H2</code> element appears after the fourth paragraph.
849- This would appear on the first page:
850-
851- <div class=cols style="height: 80px; border-bottom: none">
852- <div class="col" style="">
853- Ab cde fgh i jkl. Mno<br>
854- pqr stu vw xyz.
855- </div>
856-
857- <div class="col" style="left: 175px">
858- Ab cde fgh i jkl. Mno<br>
859- pqr stu vw xyz. A bc<br>
860- def g hij klm nopqrs<br>
861- tuv wxy z.
862- </div>
863-
864- <div class="col" style="left: 350px">
865- Ab cde fgh i jkl mno.<br>
866- Pq rstu vwxyz.
867- </div>
868-
869- <div class=gap style="left: 150px"></div>
870- <div class=gap style="left: 325px"></div>
871- </div>
872-
873- This would appear on the second page:
874-
875- <div class=cols style="height: 200px; border-top: none">
876- Ab cde fgh i jkl. Mno<br>
877- pqr stu vw xyz. A bc<br>
878- <br><br>
879- M nop qrst uv wx yz.<br>
880- Ab cde fgh i jkl. Mno<br>
881- pqr stu vw xyz. A bc<br>
882- def g hij klm nopqrs<br>
883- tuv wxy z. Abc de fg<br>
884- hi jklmno. Pqrstu vw<br>
885-
886- <div class="col" style="left: 175px">
887- def g hij klm nopqrs<br>
888- tuv wxy z. Abc de fg<br>
889- <br><br>
890- x yz. Abc def ghi jkl.<br>
891- M nop qrst uv wx yz.<br>
892- Ab cde fgh i jkl. Mno<br>
893- pqr stu vw xyz. A bc<br>
894- def g hij klm nopqrs<br>
895- tuv wxy z. Abc de fg<br>
896- </div>
849+
897850
898- <div class="col" style="left: 350px">
899- hi jklmno. Pqrstu vw<br>
900- x yz. Abc def ghi jkl.<br>
901- <br><br>
902- hi jklmno. Pqrstu vw<br>
903- x yz. Abc def ghi jkl.<br>
904- M nop qrst uv wx yz.<br>
905- Ab cde fgh i jkl. Mno<br>
906- pqr stu vw xyz.
907- </div>
851+ <figure>
852+ <img src="images/spanner-page-break1.svg" alt="Three columns with two lines of text each">
853+ <figcaption> This would appear on the first page</figcaption>
854+ </figure>
908855
909- <div class=rep style="width: 490px; height: 20px; background: silver; font-size: 1.5em; padding: 5px"> An H2 element </div >
910- <div class=gap style="left: 150px"></div >
911- <div class=gap style="left: 325px"></div >
912- </div >
856+ <figure >
857+ <img src="images/spanner-page-break2.svg" alt="A spanning element across the three columns, text above and below." >
858+ <figcaption> This would appear on the second page </figcaption >
859+ </figure >
913860 </div>
914861
915862 <div class="example">
@@ -930,39 +877,10 @@ Spanning columns</h2>
930877 p { margin-top: 1em }
931878 </pre>
932879
933- <div class=cols style="border-top: none">
934- <br><br><br><br>
935- <br>
936- Ab cde fgh i jkl. Mno<br>
937- pqr stu vw xyz. A bc<br>
938- def g hij klm nopqrs<br>
939- tuv wxy z. Abc de fg<br>
940- hi jklmno. Pqrstu vw<br>
941-
942- <div class="col" style="left: 175px">
943- <br><br><br><br>
944- x yz. Abc def ghi jkl.<br>
945- M nop qrst uv wx yz.<br>
946- Ab cde fgh i jkl. Mno<br>
947- pqr stu vw xyz. A bc<br>
948- def g hij klm nopqrs<br>
949- tuv wxy z. Abc de fg<br>
950- </div>
951-
952- <div class="col" style="left: 350px">
953- <br><br><br><br>
954- hi jklmno. Pqrstu vw<br>
955- x yz. Abc def ghi jkl.<br>
956- M nop qrst uv wx yz.<br>
957- Ab cde fgh i jkl. Mno<br>
958- pqr stu vw xyz.
959- </div>
960-
961- <div class=rep style="width: 490px; top: 0; height: 20px; background: silver; font-size: 1.5em; padding: 5px"> An H2 element</div>
962- <div class=rep style="width: 490px; top: 40px; height: 20px; background: silver; font-size: 1.5em; padding: 5px"> Another H2 element</div>
963- <div class=gap style="top: 80px; left: 150px"></div>
964- <div class=gap style="top: 80px; left: 325px"></div>
965- </div>
880+ <figure>
881+ <img src="images/two-spanners-margin-no-collapse.svg" alt="Two spanning elements after a page break">
882+ <figcaption> Margins collapse between two spanning elements, but not the bottom margin of a spanner and top margin of next element.</figcaption>
883+ </figure>
966884 </div>
967885
968886
0 commit comments