This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
spec:css3-regions:breaks-use-cases [2011/07/13 08:47] – created vhardy | spec:css3-regions:breaks-use-cases [2014/12/09 15:48] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
This page contains various use cases to support the analysis and discussion about what we should do with page, column and regions breaks. | This page contains various use cases to support the analysis and discussion about what we should do with page, column and regions breaks. | ||
+ | |||
+ | ===== Headings and region breaks ===== | ||
+ | Separate each section designated by a heading element on a distinct region. | ||
+ | |||
+ | <code html> | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | |||
+ | <div style=" | ||
+ | <h2 style=" | ||
+ | < | ||
+ | <h2 style=" | ||
+ | < | ||
+ | <h2 style=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Multi-columns and page breaks. ===== | ||
+ | |||
+ | <code html> | ||
+ | <div style=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | In this use case, the break-before on p_1 indicates that the page flow should be broken. The <div> is part of the page flow and is broken, causing a new row to be created for the multi-column element (3 new columns). So p_2 will find itself on the second page. Because there is a break-after: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Regions and page breaks ===== | ||
+ | |||
+ | <code html> | ||
+ | <div id=" | ||
+ | </ | ||
+ | |||
+ | <div id=" | ||
+ | </ | ||
+ | |||
+ | <div id=" | ||
+ | </ | ||
+ | |||
+ | <div style=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Nested Multi-Column Elements ===== | ||
+ | |||
+ | <code html> | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | <p id=" | ||
+ | </ | ||
+ | <div id=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | ===== Ordered lists and region breaks ===== | ||
+ | Avoid breaking ordered lists. The index needs to be incrementally correct. | ||
+ | |||
+ | |||
+ | <code html> | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | |||
+ | <div style=" | ||
+ | < | ||
+ | <ol style=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Tables and region breaks ===== | ||
+ | |||
+ | <code html> | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | |||
+ | <div style=" | ||
+ | < | ||
+ | <table style=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Preserve integrity of nested lists ===== | ||
+ | Allow breaking of nested lists, ordered or unordered, across regions. | ||
+ | Keep the correct nesting index and indentation across regions. | ||
+ | |||
+ | <code html> | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | |||
+ | <div style=" | ||
+ | < | ||
+ | <ol> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <li style=" | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== TITLE ===== | ||
+ | |||
+ | <code html> | ||
+ | CODE | ||
+ | </ | ||
+ | |||
+ | {{: | ||
+ | |||