Thu, 04 Apr 2013 16:38:16 -0700
[css-overflow] Add Florian's issue per WG resolution to publish FPWD.
dbaron@6470 | 1 | <!DOCTYPE html> |
dbaron@6470 | 2 | <html lang="en"> |
dbaron@6470 | 3 | <head> |
dbaron@6470 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
dbaron@6483 | 5 | <title>CSS Overflow Module Level 3</title> |
dbaron@6470 | 6 | <link rel=contents href="#contents"> |
dbaron@6470 | 7 | <link rel=index href="#index"> |
dbaron@6470 | 8 | <link rel="stylesheet" type="text/css" href="../default.css"> |
dbaron@6470 | 9 | <link rel="stylesheet" type="text/css" |
dbaron@6470 | 10 | href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css"> |
dbaron@6475 | 11 | <style> |
dbaron@6477 | 12 | table.source-demo-pair { |
dbaron@6477 | 13 | width: 100%; |
dbaron@6477 | 14 | } |
dbaron@6481 | 15 | |
dbaron@6475 | 16 | .in-cards-demo { |
dbaron@6475 | 17 | width: 13em; |
dbaron@6475 | 18 | height: 8em; |
dbaron@6475 | 19 | |
dbaron@6475 | 20 | padding: 4px; |
dbaron@6475 | 21 | border: medium solid blue; |
dbaron@6475 | 22 | margin: 6px; |
dbaron@6475 | 23 | |
dbaron@6475 | 24 | font: medium/1.3 Times New Roman, Times, serif; |
dbaron@6475 | 25 | white-space: nowrap; |
dbaron@6475 | 26 | } |
dbaron@6481 | 27 | |
dbaron@6477 | 28 | .bouncy-columns-demo { |
dbaron@6477 | 29 | width: 6em; |
dbaron@6477 | 30 | height: 10em; |
dbaron@6477 | 31 | float: left; |
dbaron@6477 | 32 | margin: 1em; |
dbaron@6477 | 33 | font: medium/1.25 Times New Roman, Times, serif; |
dbaron@6477 | 34 | white-space: nowrap; |
dbaron@6477 | 35 | } |
dbaron@6477 | 36 | .bouncy-columns-demo.one { |
dbaron@6477 | 37 | background: aqua; color: black; |
dbaron@6477 | 38 | transform: rotate(-3deg); |
dbaron@6477 | 39 | } |
dbaron@6477 | 40 | .bouncy-columns-demo.two { |
dbaron@6477 | 41 | background: yellow; color: black; |
dbaron@6477 | 42 | transform: rotate(3deg); |
dbaron@6477 | 43 | } |
dbaron@6479 | 44 | |
dbaron@6480 | 45 | .article-font-inherit-demo { |
dbaron@6480 | 46 | font: 1em/1.25 Times New Roman, Times, serif; |
dbaron@6480 | 47 | white-space: nowrap; |
dbaron@6480 | 48 | } |
dbaron@6480 | 49 | .article-font-inherit-demo.one { |
dbaron@6480 | 50 | width: 12em; |
dbaron@6480 | 51 | font-size: 1.5em; |
dbaron@6480 | 52 | margin-bottom: 1em; |
dbaron@6480 | 53 | height: 4em; |
dbaron@6480 | 54 | } |
dbaron@6480 | 55 | .article-font-inherit-demo.two { |
dbaron@6480 | 56 | width: 11em; |
dbaron@6480 | 57 | margin-left: 5em; |
dbaron@6480 | 58 | margin-right: 2em; |
dbaron@6480 | 59 | } |
dbaron@6480 | 60 | |
dbaron@6481 | 61 | .dark-columns-demo { |
dbaron@6481 | 62 | width: 6em; |
dbaron@6481 | 63 | height: 10em; |
dbaron@6481 | 64 | float: left; |
dbaron@6481 | 65 | margin-right: 1em; |
dbaron@6481 | 66 | font: medium/1.25 Times New Roman, Times, serif; |
dbaron@6481 | 67 | white-space: nowrap; |
dbaron@6481 | 68 | } |
dbaron@6481 | 69 | .dark-columns-demo.one { |
dbaron@6481 | 70 | background: aqua; color: black; |
dbaron@6481 | 71 | } |
dbaron@6481 | 72 | .dark-columns-demo.one :link { |
dbaron@6481 | 73 | color: blue; |
dbaron@6481 | 74 | } |
dbaron@6481 | 75 | .dark-columns-demo.one :visited { |
dbaron@6481 | 76 | color: purple; |
dbaron@6481 | 77 | } |
dbaron@6481 | 78 | .dark-columns-demo.two { |
dbaron@6481 | 79 | background: navy; color: white; |
dbaron@6481 | 80 | } |
dbaron@6481 | 81 | .dark-columns-demo.two :link { |
dbaron@6481 | 82 | color: aqua; |
dbaron@6481 | 83 | } |
dbaron@6481 | 84 | .dark-columns-demo.two :visited { |
dbaron@6481 | 85 | color: fuchsia; |
dbaron@6481 | 86 | } |
dbaron@6481 | 87 | |
dbaron@6479 | 88 | .article-max-lines-demo { |
dbaron@6479 | 89 | font: 1em/1.25 Times New Roman, Times, serif; |
dbaron@6479 | 90 | white-space: nowrap; |
dbaron@6479 | 91 | } |
dbaron@6479 | 92 | .article-max-lines-demo.one::first-letter { |
dbaron@6479 | 93 | font-size: 2em; |
dbaron@6479 | 94 | line-height: 0.9; |
dbaron@6479 | 95 | } |
dbaron@6479 | 96 | .article-max-lines-demo.one { |
dbaron@6479 | 97 | font-size: 1.5em; |
dbaron@6479 | 98 | width: 16em; |
dbaron@6479 | 99 | } |
dbaron@6479 | 100 | .article-max-lines-demo.two { |
dbaron@6479 | 101 | width: 11.5em; |
dbaron@6479 | 102 | float: left; margin-right: 1em; |
dbaron@6479 | 103 | } |
dbaron@6479 | 104 | .article-max-lines-demo.three { |
dbaron@6479 | 105 | width: 11.5em; |
dbaron@6479 | 106 | float: left; |
dbaron@6479 | 107 | } |
dbaron@6475 | 108 | </style> |
dbaron@6470 | 109 | </head> |
dbaron@6470 | 110 | |
dbaron@6470 | 111 | <div class="head"> |
dbaron@6470 | 112 | <!--logo--> |
dbaron@6470 | 113 | |
dbaron@6483 | 114 | <h1>CSS Overflow Module Level 3</h1> |
dbaron@6470 | 115 | |
dbaron@6470 | 116 | <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2> |
dbaron@6470 | 117 | <dl> |
dbaron@6470 | 118 | <dt>This version: |
dbaron@7461 | 119 | <dd><a href="[VERSION]">[VERSION]</a> |
dbaron@6470 | 120 | |
dbaron@6470 | 121 | <dt>Latest version: |
dbaron@7461 | 122 | <dd><a href="http://www.w3.org/TR/css3-overflow/">http://www.w3.org/TR/css3-overflow/</a> |
dbaron@6470 | 123 | |
dbaron@6470 | 124 | <dt>Editor's draft: |
dbaron@6470 | 125 | <dd><a href="http://dev.w3.org/csswg/[SHORTNAME]/">http://dev.w3.org/csswg/[SHORTNAME]/</a> |
dbaron@7863 | 126 | (<a href="https://dvcs.w3.org/hg/csswg/log/tip/css-overflow/Overview.src.html">change log</a>, |
dbaron@7863 | 127 | <a href="https://dvcs.w3.org/hg/csswg/log/tip/css3-overflow/Overview.src.html">older change log</a>) |
dbaron@6470 | 128 | |
dbaron@6470 | 129 | <dt>Previous version: |
dbaron@7460 | 130 | <dd>none |
dbaron@6470 | 131 | |
dbaron@7809 | 132 | <dt>Editors: |
dbaron@7809 | 133 | <dd class="h-card vcard"> |
dbaron@7809 | 134 | <a class="p-name fn u-url url" rel="author" |
dbaron@7809 | 135 | href="http://dbaron.org/">L. David Baron</a>, |
dbaron@7809 | 136 | <a class="p-org org" href="http://www.mozilla.org/">Mozilla</a> |
dbaron@7809 | 137 | |
dbaron@6470 | 138 | <dt>Issue Tracking:</dt> |
dbaron@6470 | 139 | <dd>Maintained in document (only editor's draft is current) |
dbaron@6470 | 140 | |
dbaron@6470 | 141 | <dt>Feedback:</dt> |
jackalmage@7856 | 142 | <dd><a href="mailto:[email protected]?subject=%5B[css-overflow]%5D%20feedback" |
jackalmage@7856 | 143 | >[email protected]</a> |
jackalmage@7856 | 144 | with subject line “<kbd>[css-overflow] |
jackalmage@7856 | 145 | <var>… message topic …</var></kbd>” |
jackalmage@7856 | 146 | (<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/" |
jackalmage@7856 | 147 | >archives</a>) |
dbaron@6470 | 148 | |
dbaron@7809 | 149 | <dt>Test suite: |
dbaron@7809 | 150 | <dd>none yet |
dbaron@6470 | 151 | </dl> |
dbaron@6470 | 152 | |
dbaron@6470 | 153 | <!--copyright--> |
dbaron@6470 | 154 | |
dbaron@6470 | 155 | <hr title="Separator for header"> |
dbaron@6470 | 156 | </div> |
dbaron@6470 | 157 | |
dbaron@6470 | 158 | <h2 class="no-num no-toc" id="abstract">Abstract</h2> |
dbaron@6470 | 159 | |
dbaron@6470 | 160 | <p> |
dbaron@6470 | 161 | <a href="http://www.w3.org/TR/CSS/">CSS</a> is |
dbaron@6470 | 162 | a language for describing |
dbaron@6470 | 163 | the rendering of structured documents (such as HTML and XML) |
dbaron@6470 | 164 | on screen, on paper, in speech, etc. |
dbaron@6470 | 165 | This module contains the features of CSS |
dbaron@6470 | 166 | relating to new mechanisms of overflow handling in visual media (e.g., screen or paper). |
dbaron@6470 | 167 | In interactive media, |
dbaron@6470 | 168 | it describes features that allow the overflow |
dbaron@6470 | 169 | from a fixed size container |
dbaron@6470 | 170 | to be handled by pagination (displaying one page at a time). |
dbaron@6470 | 171 | It also describes features, applying to all visual media, |
dbaron@6470 | 172 | that allow the contents of an element |
dbaron@6484 | 173 | to be spread across multiple fragments, |
dbaron@6484 | 174 | allowing the contents to flow across multiple regions |
dbaron@6484 | 175 | or to have different styles for different fragments. |
dbaron@6470 | 176 | </p> |
dbaron@6470 | 177 | |
dbaron@6470 | 178 | <h2 class="no-num no-toc" id="status">Status of this document</h2> |
dbaron@6470 | 179 | |
dbaron@6470 | 180 | <!--status--> |
dbaron@6470 | 181 | |
dbaron@6470 | 182 | <p>The following features are at risk: … |
dbaron@6470 | 183 | |
dbaron@6470 | 184 | <h2 class="no-num no-toc" id="contents"> |
dbaron@6470 | 185 | Table of contents</h2> |
dbaron@6470 | 186 | |
dbaron@6470 | 187 | <!--toc--> |
dbaron@6470 | 188 | |
dbaron@6470 | 189 | <h2 id="intro"> |
dbaron@6470 | 190 | Introduction</h2> |
dbaron@6470 | 191 | |
dbaron@6470 | 192 | <p> |
dbaron@6470 | 193 | In CSS Level 1 [[CSS1]], placing more content than would fit |
dbaron@6470 | 194 | inside an element with a specified size |
dbaron@6470 | 195 | was generally an authoring error. |
dbaron@6470 | 196 | Doing so caused the content to extend |
dbaron@6470 | 197 | outside the bounds of the element, |
dbaron@6470 | 198 | which would likely cause |
dbaron@6470 | 199 | that content to overlap with other elements. |
dbaron@6470 | 200 | </p> |
dbaron@6470 | 201 | |
dbaron@6470 | 202 | <p> |
dbaron@6470 | 203 | CSS Level 2 [[CSS21]] introduced the 'overflow' property, |
dbaron@6470 | 204 | which allows authors to have overflow be handled by scrolling, |
dbaron@6470 | 205 | which means it is no longer an authoring error. |
dbaron@6470 | 206 | It also allows authors to specify |
dbaron@6470 | 207 | that overflow is handled by clipping, |
dbaron@6470 | 208 | which makes sense when the author's intent |
dbaron@6470 | 209 | is that the content not be shown. |
dbaron@6470 | 210 | </p> |
dbaron@6470 | 211 | |
dbaron@6470 | 212 | <p> |
dbaron@6470 | 213 | However, scrolling is not the only way |
dbaron@6470 | 214 | to present large amounts of content, |
dbaron@6470 | 215 | and may even not be the optimal way. |
dbaron@6470 | 216 | After all, the codex replaced the scroll |
dbaron@6470 | 217 | as the common format for large written works |
dbaron@6470 | 218 | because of its advantages. |
dbaron@6470 | 219 | </p> |
dbaron@6470 | 220 | |
dbaron@6470 | 221 | <p> |
dbaron@6470 | 222 | This specification introduces |
dbaron@6470 | 223 | a mechanism for Web pages to specify |
dbaron@6484 | 224 | that an element of a page should handle overflow |
dbaron@6470 | 225 | through pagination rather than through scrolling. |
dbaron@6470 | 226 | </p> |
dbaron@6470 | 227 | |
dbaron@6470 | 228 | <p> |
dbaron@6470 | 229 | This specification also extends the concept of overflow |
dbaron@6470 | 230 | in another direction. |
dbaron@6484 | 231 | Instead of requiring that authors specify a single area |
dbaron@6470 | 232 | into which the content of an element must flow, |
dbaron@6484 | 233 | this specification allows authors to specify multiple fragments, |
dbaron@6470 | 234 | each with their own dimensions and styles, |
dbaron@6470 | 235 | so that the content of the element can flow from one to the next, |
dbaron@6470 | 236 | using as many as needed to place the content without overflowing. |
dbaron@6470 | 237 | </p> |
dbaron@6470 | 238 | |
dbaron@6470 | 239 | <p> |
dbaron@6470 | 240 | In both of these cases, implementations must |
dbaron@6470 | 241 | break the content in the block-progression dimension. |
dbaron@6470 | 242 | Implementations must do this is described |
dbaron@6470 | 243 | in the CSS Fragmentation Module [[!CSS3-BREAK]]. |
dbaron@6470 | 244 | </p> |
dbaron@6470 | 245 | |
dbaron@7811 | 246 | <h2 id="overflow-properties">Overflow properties</h2> |
dbaron@7811 | 247 | |
dbaron@7814 | 248 | <p> |
dbaron@7814 | 249 | The ''overflow-x'' property specifies |
dbaron@7814 | 250 | the handling of overflow in the horizontal direction |
dbaron@7814 | 251 | (i.e., overflow from the left and right sides of the box), |
dbaron@7814 | 252 | and the ''overflow-y'' property specifies the handling |
dbaron@7814 | 253 | of overflow in the vertical direction |
dbaron@7814 | 254 | (i.e., overflow from the top and bottom sides of the box) |
dbaron@7814 | 255 | </p> |
dbaron@7814 | 256 | |
dbaron@7811 | 257 | <table class=propdef> |
dbaron@7811 | 258 | <tr> |
dbaron@7811 | 259 | <th>Name: |
dbaron@7811 | 260 | <td><dfn>overflow-x</dfn>, <dfn>overflow-y</dfn> |
dbaron@7811 | 261 | <tr> |
dbaron@7811 | 262 | <th><a href="#values">Value</a>: |
dbaron@7811 | 263 | <td>visible | hidden | scroll | auto | paged-x | paged-y | paged-x-controls | paged-y-controls | fragments |
dbaron@7811 | 264 | <tr> |
dbaron@7811 | 265 | <th>Initial: |
dbaron@7811 | 266 | <td>visible |
dbaron@7811 | 267 | <tr> |
dbaron@7811 | 268 | <th>Applies to: |
dbaron@7819 | 269 | <td>block containers [[!CSS21]], flex containers [[!CSS3-FLEXBOX]], and grid containers [[!CSS3-GRID-LAYOUT]] |
dbaron@7811 | 270 | <tr> |
dbaron@7811 | 271 | <th>Inherited: |
dbaron@7811 | 272 | <td>no |
dbaron@7811 | 273 | <tr> |
dbaron@7811 | 274 | <th>Percentages: |
dbaron@7811 | 275 | <td>N/A |
dbaron@7811 | 276 | <tr> |
dbaron@7811 | 277 | <th>Media: |
dbaron@7811 | 278 | <td>visual |
dbaron@7811 | 279 | <tr> |
dbaron@7811 | 280 | <th>Computed value: |
dbaron@7811 | 281 | <td>see below |
dbaron@7811 | 282 | <tr> |
dbaron@7811 | 283 | <th>Animatable: |
dbaron@7811 | 284 | <td>no |
dbaron@7811 | 285 | <tr> |
dbaron@7811 | 286 | <th>Canonical order: |
dbaron@7811 | 287 | <td><abbr title="follows order of property value definition">per grammar</abbr> |
dbaron@7811 | 288 | </table> |
dbaron@7811 | 289 | |
dbaron@7814 | 290 | <p> |
dbaron@7814 | 291 | The 'overflow' property is a shorthand property |
dbaron@7814 | 292 | that sets the specified values of both 'overflow-x' and 'overflow-y' |
dbaron@7814 | 293 | to the value specified for 'overflow'. |
dbaron@7814 | 294 | </p> |
dbaron@7814 | 295 | |
dbaron@7811 | 296 | <table class=propdef> |
dbaron@7811 | 297 | <tr> |
dbaron@7811 | 298 | <th>Name: |
dbaron@7811 | 299 | <td><dfn>overflow</dfn> |
dbaron@7811 | 300 | <tr> |
dbaron@7811 | 301 | <th><a href="#values">Value</a>: |
dbaron@7811 | 302 | <td>visible | hidden | scroll | auto | paged-x | paged-y | paged-x-controls | paged-y-controls | fragments |
dbaron@7811 | 303 | <tr> |
dbaron@7811 | 304 | <th>Initial: |
dbaron@7811 | 305 | <td>see individual properties |
dbaron@7811 | 306 | <tr> |
dbaron@7811 | 307 | <th>Applies to: |
dbaron@7811 | 308 | <td>block containers |
dbaron@7811 | 309 | <tr> |
dbaron@7811 | 310 | <th>Inherited: |
dbaron@7811 | 311 | <td>no |
dbaron@7811 | 312 | <tr> |
dbaron@7811 | 313 | <th>Percentages: |
dbaron@7811 | 314 | <td>N/A |
dbaron@7811 | 315 | <tr> |
dbaron@7811 | 316 | <th>Media: |
dbaron@7811 | 317 | <td>visual |
dbaron@7811 | 318 | <tr> |
dbaron@7811 | 319 | <th>Computed value: |
dbaron@7811 | 320 | <td>see individual properties |
dbaron@7811 | 321 | <tr> |
dbaron@7811 | 322 | <th>Animatable: |
dbaron@7811 | 323 | <td>no |
dbaron@7811 | 324 | <tr> |
dbaron@7811 | 325 | <th>Canonical order: |
dbaron@7811 | 326 | <td><abbr title="follows order of property value definition">per grammar</abbr> |
dbaron@7811 | 327 | </table> |
dbaron@7811 | 328 | |
dbaron@7811 | 329 | <p>The values of these properties are:</p> |
dbaron@7811 | 330 | |
dbaron@7811 | 331 | <dl> |
dbaron@7811 | 332 | <dt><dfn>visible</dfn> |
dbaron@7811 | 333 | <dd> |
dbaron@7811 | 334 | There is no special handling of overflow, that is, it |
dbaron@7811 | 335 | may be rendered outside the block container. |
dbaron@7811 | 336 | </dd> |
dbaron@7811 | 337 | <dt><dfn>hidden</dfn> |
dbaron@7811 | 338 | <dt><dfn>scroll</dfn> |
dbaron@7811 | 339 | <dt><dfn>auto</dfn> |
dbaron@7811 | 340 | <dd> |
dbaron@7811 | 341 | These values are collectively the <dfn>scrolling values</dfn>; |
dbaron@7811 | 342 | they are defined in the section on |
dbaron@7811 | 343 | <a href="#scrolling-overflow">scrolling and hidden overflow</a>. |
dbaron@7811 | 344 | </dd> |
dbaron@7811 | 345 | <dt><dfn>paged-x</dfn> |
dbaron@7811 | 346 | <dt><dfn>paged-y</dfn> |
dbaron@7811 | 347 | <dt><dfn>paged-x-controls</dfn> |
dbaron@7811 | 348 | <dt><dfn>paged-y-controls</dfn> |
dbaron@7811 | 349 | <dt><dfn>fragments</dfn> |
dbaron@7811 | 350 | <dd> |
dbaron@7811 | 351 | These values are collectively the <dfn>fragmenting values</dfn>; |
dbaron@7811 | 352 | they are defined in the sections on |
dbaron@7811 | 353 | <a href="#paginated-overflow">paginated overflow</a> and |
dbaron@7811 | 354 | <a href="#fragment-overflow">fragment overflow</a>. |
dbaron@7811 | 355 | </dd> |
dbaron@7811 | 356 | </dl> |
dbaron@7811 | 357 | |
dbaron@7811 | 358 | <div id="overflow-computed-values"> |
dbaron@7811 | 359 | <p>The computed values of 'overflow-x' and 'overflow-y' |
dbaron@7811 | 360 | are determined from the cascaded values [[!CSS3CASCADE]] |
dbaron@7811 | 361 | based on the following rules:</p> |
dbaron@7811 | 362 | |
dbaron@7811 | 363 | <ol> |
dbaron@7811 | 364 | <li> |
dbaron@7811 | 365 | If one or both of the cascaded values are |
dbaron@7811 | 366 | <i>fragmenting values</i>, then: |
dbaron@7811 | 367 | <ol> |
dbaron@7811 | 368 | <li> |
dbaron@7811 | 369 | If one of the cascaded values is one of the |
dbaron@7811 | 370 | <i>fragmenting values</i> |
dbaron@7811 | 371 | and the other is not, |
dbaron@7811 | 372 | then the computed values are |
dbaron@7811 | 373 | the same as the cascaded values. |
dbaron@7811 | 374 | </li> |
dbaron@7811 | 375 | <li> |
dbaron@7811 | 376 | If both of the cascaded values are <i>fragmenting values</i>, then: |
dbaron@7811 | 377 | <ol> |
dbaron@7811 | 378 | <li> |
dbaron@7811 | 379 | for horizontal writing mode [[!CSS3-WRITING-MODES]], |
dbaron@7811 | 380 | the computed value for ''overflow-y'' is the cascaded value |
dbaron@7811 | 381 | and the computed value for ''overflow-x'' is ''hidden'', or |
dbaron@7811 | 382 | </li> |
dbaron@7811 | 383 | <li> |
dbaron@7811 | 384 | for vertical writing mode [[!CSS3-WRITING-MODES]], |
dbaron@7811 | 385 | the computed value for ''overflow-x'' is the cascaded value |
dbaron@7811 | 386 | and the computed value for ''overflow-y'' is ''hidden''. |
dbaron@7811 | 387 | </li> |
dbaron@7811 | 388 | </ol> |
dbaron@7811 | 389 | </li> |
dbaron@7811 | 390 | </ol> |
dbaron@7811 | 391 | </li> |
dbaron@7811 | 392 | <li> |
dbaron@7811 | 393 | Otherwise, if one cascaded values is |
dbaron@7811 | 394 | one of the <i>scrolling values</i> |
dbaron@7811 | 395 | and the other is ''visible'', |
dbaron@7811 | 396 | then computed values are the cascaded values |
dbaron@7811 | 397 | with ''visible'' changed to ''hidden''. |
dbaron@7811 | 398 | </li> |
dbaron@7811 | 399 | <li> |
dbaron@7811 | 400 | Otherwise, the computed values are as specified. |
dbaron@7811 | 401 | </li> |
dbaron@7811 | 402 | </ol> |
dbaron@7811 | 403 | </div> |
dbaron@7811 | 404 | |
dbaron@7811 | 405 | <p class="issue"> |
dbaron@7811 | 406 | Are all 4 of the ''paged-*'' values really needed? |
dbaron@7811 | 407 | </p> |
dbaron@7811 | 408 | |
dbaron@7811 | 409 | <p> |
dbaron@7811 | 410 | When the <i>fragmenting values</i> are used, |
dbaron@7811 | 411 | the overflow from the fragments themselves |
dbaron@7811 | 412 | treats the fragmenting value as ''hidden''. |
dbaron@7811 | 413 | <span class="issue">Is this the right behavior?</span> |
dbaron@7811 | 414 | <span class="issue">Give example.</span> |
dbaron@7811 | 415 | </p> |
dbaron@7811 | 416 | |
dbaron@7820 | 417 | <p class="issue"> |
dbaron@7820 | 418 | [[CSS3-MARQUEE]] describes an 'overflow-style' property, |
dbaron@7820 | 419 | but it has not picked up implementation experience |
dbaron@7820 | 420 | that the working group is aware of. |
dbaron@7820 | 421 | Should this document treat 'overflow-style' as a defunct proposal, |
dbaron@7820 | 422 | or should this document describe the 'overflow-style' property |
dbaron@7820 | 423 | and attempt to revive it, |
dbaron@7820 | 424 | despite that implementations have implemented |
dbaron@7820 | 425 | 'overflow-x' and 'overflow-y' instead? |
dbaron@7820 | 426 | </p> |
dbaron@7820 | 427 | |
dbaron@7916 | 428 | <p class="issue"> |
dbaron@7916 | 429 | There are <a href="http://lists.w3.org/Archives/Public/www-style/2012May/1197.html">discussions</a> |
dbaron@7916 | 430 | about how overflow, overflow-style, overflow-x and overflow-y |
dbaron@7916 | 431 | should work and interact with each other. |
dbaron@7916 | 432 | Until consensus on this topic is reached, |
dbaron@7916 | 433 | it is not completely clear which of these |
dbaron@7916 | 434 | should be used for |
dbaron@7916 | 435 | paged-x | paged-y | paged-x-controls | paged-y-controls | fragments |
dbaron@7916 | 436 | </p> |
dbaron@7916 | 437 | |
dbaron@6483 | 438 | <h2 id="scrolling-overflow">Scrolling and hidden overflow</h2> |
dbaron@6483 | 439 | |
dbaron@6483 | 440 | <p class="issue"> |
dbaron@6483 | 441 | Move material from [[CSS21]] and [[CSS3BOX]] here. |
dbaron@6483 | 442 | </p> |
dbaron@6470 | 443 | |
dbaron@6470 | 444 | <h2 id="paginated-overflow">Paginated overflow</h2> |
dbaron@6470 | 445 | |
dbaron@6497 | 446 | <p class="issue">overflow:paginate or overflow:pages (or paged-x, paged-y, paged-x-controls, paged-y-controls as [[CSS3GCPM]] has?)</p> |
dbaron@6470 | 447 | |
dbaron@6470 | 448 | <p class="issue">Ability to display N pages at once |
dbaron@6470 | 449 | rather than just one page at once?</p> |
dbaron@6470 | 450 | |
dbaron@6497 | 451 | <p class="issue"> |
dbaron@6497 | 452 | The current implementation of paginated overflow uses |
dbaron@6497 | 453 | the 'overflow'/'overflow-x'/'overflow-y' properties |
dbaron@6497 | 454 | rather than the 'overflow-style' property as proposed |
dbaron@6497 | 455 | in the [[CSS3GCPM]] draft |
dbaron@6497 | 456 | (which also matches the [[CSS3-MARQUEE]] proposal). |
dbaron@6497 | 457 | We should probably switch away from 'overflow-style', |
dbaron@6497 | 458 | but that's not 100% clear. |
dbaron@6497 | 459 | </p> |
dbaron@6497 | 460 | |
dbaron@6484 | 461 | <h2 id="fragment-overflow">Fragment overflow</h2> |
dbaron@6470 | 462 | |
dbaron@6470 | 463 | <p> |
dbaron@6470 | 464 | This section introduces and defines the meaning of |
dbaron@6484 | 465 | the new ''fragments'' value of the 'overflow' property. |
dbaron@6470 | 466 | </p> |
dbaron@6470 | 467 | |
dbaron@6470 | 468 | <p> |
dbaron@6484 | 469 | When the computed value of 'overflow' for an element is ''fragments'', |
dbaron@6470 | 470 | and implementations would otherwise have created a box for the element, |
dbaron@6491 | 471 | then implementations must create a sequence of <dfn>fragment box</dfn>es |
dbaron@6470 | 472 | for that element. |
dbaron@6491 | 473 | (It is possible for an element with ''overflow: fragments'' |
dbaron@6491 | 474 | to generate only one <i>fragment box</i>. |
dbaron@6484 | 475 | However, if an element's computed 'overflow' is not ''fragments'', |
dbaron@6484 | 476 | then its box is not a <i>fragment box</i>.) |
dbaron@6484 | 477 | Every <i>fragment box</i> is a fragmentation container, |
dbaron@6491 | 478 | and any overflow |
dbaron@6491 | 479 | that would cause that fragmentation container to fragment |
dbaron@6491 | 480 | causes another <i>fragment box</i> created as a next sibling |
dbaron@6470 | 481 | of the previous one. |
dbaron@6470 | 482 | <span class="issue">Or is it as though it's a next sibling of |
dbaron@6470 | 483 | the element? Need to figure out exactly how this interacts with |
dbaron@6470 | 484 | other box-level fixup.</span> |
dbaron@6492 | 485 | Additionally, if the <i>fragment box</i> is also |
dbaron@6492 | 486 | a multi-column box (as defined in [[!CSS3COL]] |
dbaron@6492 | 487 | <span class="issue">though it defines <i>multi-column element</i></span>) |
dbaron@6492 | 488 | any content that would lead to the creation of <i>overflow columns</i> [[!CSS3COL]] |
dbaron@6492 | 489 | instead is flown into an additional fragment box. |
dbaron@6491 | 490 | However, fragment boxes may themselves be broken |
dbaron@6491 | 491 | (due to fragmentation in a fragmentation context outside of them, |
dbaron@6491 | 492 | such as pages, columns, or other fragment boxes); |
dbaron@6491 | 493 | such breaking leads to fragments of the same fragment box |
dbaron@6491 | 494 | rather than multiple fragment boxes. |
dbaron@6491 | 495 | (This matters because fragment boxes may be styled by their index; |
dbaron@6491 | 496 | such breaking leads to multiple fragments of a fragment box |
dbaron@6491 | 497 | with a single index. |
dbaron@6491 | 498 | This design choice is so that |
dbaron@6491 | 499 | breaking a fragment box across pages does not break |
dbaron@6491 | 500 | the association of indices to particular pieces of content.) |
dbaron@6491 | 501 | <span class="issue">Should a forced break that breaks to |
dbaron@6491 | 502 | an outer fragmentation context cause a new fragment of a single |
dbaron@6491 | 503 | fragment box or a new fragment box?</span> |
dbaron@6491 | 504 | <span class="issue">Should we find a term other than |
dbaron@6491 | 505 | <i>fragment box</i> here to make this a little less confusing?</span> |
dbaron@6470 | 506 | </p> |
dbaron@6470 | 507 | |
dbaron@6470 | 508 | <p class="issue"> |
dbaron@6491 | 509 | What if we want to be able to style the pieces of an element |
dbaron@6491 | 510 | split within another type of fragmentation context? |
dbaron@6491 | 511 | These rules prevent ever using ''::nth-fragment()'' for that, |
dbaron@6491 | 512 | despite that the name seems the most logical name for such a feature. |
dbaron@6470 | 513 | </p> |
dbaron@6470 | 514 | |
dbaron@6475 | 515 | <div class="example"> |
dbaron@6477 | 516 | <table class="source-demo-pair"><tr><td><pre><!DOCTYPE HTML> |
dbaron@6475 | 517 | <title>Breaking content into |
dbaron@6475 | 518 | equal-sized cards</title> |
dbaron@6475 | 519 | <style> |
dbaron@6475 | 520 | .in-cards { |
dbaron@6484 | 521 | overflow: fragments; |
dbaron@6475 | 522 | |
dbaron@6475 | 523 | width: 13em; |
dbaron@6475 | 524 | height: 8em; |
dbaron@6475 | 525 | |
dbaron@6475 | 526 | padding: 4px; |
dbaron@6475 | 527 | border: medium solid blue; |
dbaron@6475 | 528 | margin: 6px; |
dbaron@6475 | 529 | |
dbaron@6475 | 530 | font: medium/1.3 Times New |
dbaron@6475 | 531 | Roman, Times, serif; |
dbaron@6475 | 532 | } |
dbaron@6475 | 533 | </style> |
dbaron@6475 | 534 | <div class="in-cards"> |
dbaron@6475 | 535 | In this example, the text in the div |
dbaron@6475 | 536 | is broken into a series of cards. |
dbaron@6475 | 537 | These cards all have the same style. |
dbaron@6475 | 538 | The presence of enough content to |
dbaron@6475 | 539 | overflow one of the cards causes |
dbaron@6475 | 540 | another one to be created. The second |
dbaron@6475 | 541 | card is created just like it's the |
dbaron@6475 | 542 | next sibling of the first. |
dbaron@6477 | 543 | </div></pre></td><td> |
dbaron@6475 | 544 | <div class="in-cards-demo">In this example, the text in the<br>div is broken into a series of<br>cards. These cards all have the<br>same style. The presence of<br>enough content to overflow<br>one of the cards causes another</div> |
dbaron@6475 | 545 | <div class="in-cards-demo">one to be created. The second<br>card is created just like it's the<br>next sibling of the first.</div> |
dbaron@6475 | 546 | </td></tr></table> |
dbaron@6475 | 547 | </div> |
dbaron@6475 | 548 | |
dbaron@6487 | 549 | <p class="issue"> |
dbaron@6487 | 550 | We should specify that ''overflow: fragments'' does not apply |
dbaron@6487 | 551 | to at least some table parts, |
dbaron@6487 | 552 | and perhaps other elements as well. |
dbaron@6487 | 553 | We need to determine exactly which ones. |
dbaron@6487 | 554 | </p> |
dbaron@6487 | 555 | |
dbaron@6488 | 556 | <p class="issue"> |
dbaron@6488 | 557 | This specification needs to say which type of |
dbaron@6488 | 558 | fragmentation context is created |
dbaron@6488 | 559 | so that it's clear which values of the 'break' property |
dbaron@6488 | 560 | cause breaks within this context. |
dbaron@6488 | 561 | We probably want ''break: regions'' to apply. |
dbaron@6488 | 562 | </p> |
dbaron@6488 | 563 | |
dbaron@6494 | 564 | <p class="issue"> |
dbaron@6494 | 565 | This specification needs a processing model |
dbaron@6494 | 566 | that will apply in cases where the layout containing the |
dbaron@6494 | 567 | fragments has characteristics that use the intrinsic size of the fragments |
dbaron@6494 | 568 | to change the amount of space available for them, |
dbaron@6494 | 569 | such as [[CSS3-GRID-LAYOUT]]. |
dbaron@6494 | 570 | There has already been some work on such a processing model |
dbaron@6494 | 571 | in [[CSS3-REGIONS]], |
dbaron@6494 | 572 | and the work done on a model there, |
dbaron@6494 | 573 | and the editors of that specification, |
dbaron@6494 | 574 | should inform what happens in this specification. |
dbaron@6494 | 575 | </p> |
dbaron@6494 | 576 | |
dbaron@6484 | 577 | <h3 id="fragment-styling">Fragment styling</h3> |
dbaron@6470 | 578 | |
dbaron@6484 | 579 | <h4 id="fragment-pseudo-element">The ::nth-fragment() pseudo-element</h4> |
dbaron@6470 | 580 | |
dbaron@6470 | 581 | <p> |
dbaron@6484 | 582 | The ::nth-fragment() pseudo-element is a pseudo-element |
dbaron@6484 | 583 | that describes some of the <i>fragment box</i>es generated by an element. |
dbaron@6470 | 584 | The argument to the pseudo-element takes the same syntax |
dbaron@6470 | 585 | as the argument to the :nth-child() pseudo-class |
dbaron@6470 | 586 | defined in [[!SELECT]], and has the same meaning |
dbaron@6470 | 587 | except that the number is relative to |
dbaron@6484 | 588 | <i>fragment box</i>es generated by the element |
dbaron@6470 | 589 | instead of siblings of the element. |
dbaron@6470 | 590 | </p> |
dbaron@6470 | 591 | |
dbaron@6470 | 592 | <p class="note"> |
dbaron@6484 | 593 | Selectors that allow addressing fragments |
dbaron@6470 | 594 | by counting from the end rather than the start |
dbaron@6470 | 595 | are intentionally not provided. |
dbaron@6470 | 596 | Such selectors would interfere with determining |
dbaron@6484 | 597 | the number of fragments. |
dbaron@6470 | 598 | </p> |
dbaron@6470 | 599 | |
dbaron@6489 | 600 | <p class="issue"> |
dbaron@6489 | 601 | Depending on future discussions, |
dbaron@6489 | 602 | this ''::nth-fragment(<var>an+b</var>)'' syntax |
dbaron@6489 | 603 | may be replaced with |
dbaron@6489 | 604 | the new ''::fragment:nth(<var>an+b</var>)'' syntax. |
dbaron@6489 | 605 | </p> |
dbaron@6489 | 606 | |
dbaron@6484 | 607 | <h4 id="style-of-fragments">Styling of fragments</h4> |
dbaron@6470 | 608 | |
dbaron@6470 | 609 | <p class="issue"> |
dbaron@6484 | 610 | Should this apply to fragment overflow only, |
dbaron@6470 | 611 | or also to paginated overflow? |
dbaron@6470 | 612 | (If it applies, |
dbaron@6470 | 613 | then stricter property restrictions would be needed |
dbaron@6470 | 614 | for paginated overflow.) |
dbaron@6470 | 615 | </p> |
dbaron@6470 | 616 | |
dbaron@6470 | 617 | <p> |
dbaron@6484 | 618 | In the absence of rules with ''::nth-fragment()'' pseudo-elements, |
dbaron@6484 | 619 | the computed style for each <i>fragment box</i> |
dbaron@6470 | 620 | is the computed style for the element |
dbaron@6484 | 621 | for which the <i>fragment box</i> was created. |
dbaron@6484 | 622 | However, the style for a <i>fragment box</i> is also influenced |
dbaron@6470 | 623 | by rules whose selector's <i>subject</i> [[!SELECT]] |
dbaron@6484 | 624 | has an ''::nth-fragment()'' pseudo-element, |
dbaron@6484 | 625 | if the 1-based number of the <i>fragment box</i> matches |
dbaron@6484 | 626 | that ''::nth-fragment()'' pseudo-element |
dbaron@6484 | 627 | and the selector (excluding the ''::nth-fragment()'' pseudo-element) |
dbaron@6484 | 628 | matches the element generating the fragments. |
dbaron@6470 | 629 | </p> |
dbaron@6470 | 630 | |
dbaron@6486 | 631 | <p> |
dbaron@6486 | 632 | When determining the style of the <i>fragment box</i>, |
dbaron@6486 | 633 | these rules that match the fragment pseudo-element |
dbaron@6486 | 634 | cascade together with the rules that match the element, |
dbaron@6486 | 635 | with the fragment pseudo-element adding the specificity |
dbaron@6486 | 636 | of a pseudo-class to the specificity calculation. |
dbaron@6486 | 637 | <span class="issue">Does this need to be specified in |
dbaron@6486 | 638 | the cascading module as well?</span> |
dbaron@6486 | 639 | </p> |
dbaron@6486 | 640 | |
dbaron@6477 | 641 | <div class="example"> |
dbaron@6477 | 642 | <table class="source-demo-pair"><tr><td><pre><!DOCTYPE HTML> |
dbaron@6477 | 643 | <style> |
dbaron@6477 | 644 | .bouncy-columns { |
dbaron@6484 | 645 | overflow: fragments; |
dbaron@6477 | 646 | width: 6em; |
dbaron@6477 | 647 | height: 10em; |
dbaron@6477 | 648 | float: left; |
dbaron@6477 | 649 | margin: 1em; |
dbaron@6477 | 650 | font: medium/1.25 Times New |
dbaron@6477 | 651 | Roman, Times, serif; |
dbaron@6477 | 652 | } |
dbaron@6484 | 653 | .bouncy-columns::nth-fragment(1) { |
dbaron@6477 | 654 | background: aqua; color: black; |
dbaron@6477 | 655 | transform: rotate(-3deg); |
dbaron@6477 | 656 | } |
dbaron@6484 | 657 | .bouncy-columns::nth-fragment(2) { |
dbaron@6477 | 658 | background: yellow; color: black; |
dbaron@6477 | 659 | transform: rotate(3deg); |
dbaron@6477 | 660 | } |
dbaron@6477 | 661 | </style> |
dbaron@6477 | 662 | <div class="bouncy-columns"> |
dbaron@6477 | 663 | <i>...</i> |
dbaron@6477 | 664 | </div></pre></td><td> |
dbaron@6477 | 665 | <div class="bouncy-columns-demo one">In this<br>example, the<br>text in the div<br>is broken into<br>a series of<br>columns. The<br>author<br>probably</div> |
dbaron@6477 | 666 | <div class="bouncy-columns-demo two">intended the<br>text to fill two<br>columns. But<br>if it happens to<br>fill three<br>columns, the<br>third column is<br>still created. It</div> |
dbaron@6484 | 667 | <div class="bouncy-columns-demo">just doesn't<br>have any<br>fragment-specific<br>styling because<br>the author<br>didn't give it<br>any.</div> |
dbaron@6477 | 668 | </td></tr></table> |
dbaron@6477 | 669 | </div> |
dbaron@6477 | 670 | |
dbaron@6470 | 671 | <p> |
dbaron@6484 | 672 | Styling an ''::nth-fragment()'' pseudo-element with the 'overflow' |
dbaron@6490 | 673 | property does take effect; |
dbaron@6490 | 674 | if a <i>fragment box</i> has a |
dbaron@6490 | 675 | computed value of 'overflow' other than ''fragments'' |
dbaron@6490 | 676 | then that fragment box is the last fragment. |
dbaron@6490 | 677 | However, overriding ''overflow'' on the first fragment |
dbaron@6490 | 678 | does not cause the <i>fragment box</i> not to exist; |
dbaron@6490 | 679 | whether there are fragment boxes at all is determined by |
dbaron@6490 | 680 | the computed value of overflow for the element. |
dbaron@7813 | 681 | <span class="issue">Need to reword this to refer to the |
dbaron@7813 | 682 | appropriate choice of ''overflow-x'' or ''overflow-y'', |
dbaron@7813 | 683 | and then point to rule about the handling of the other one |
dbaron@7813 | 684 | of ''overflow-x'' or ''overflow-y''.</span> |
dbaron@6470 | 685 | </p> |
dbaron@6470 | 686 | |
dbaron@6470 | 687 | <p> |
dbaron@6485 | 688 | Styling an ''::nth-fragment()'' pseudo-element with the 'content' |
dbaron@6485 | 689 | property has no effect; |
dbaron@6485 | 690 | the computed value of 'content' for the fragment box |
dbaron@6485 | 691 | remains the same as the computed value of content for the element. |
dbaron@6485 | 692 | </p> |
dbaron@6485 | 693 | |
dbaron@6485 | 694 | <p> |
dbaron@6484 | 695 | Specifying ''display: none'' for a <i>fragment box</i> causes |
dbaron@6484 | 696 | the fragment box with that index not to be generated. |
dbaron@6470 | 697 | However, in terms of the indices |
dbaron@6484 | 698 | used for matching ''::nth-fragment()'' pseudo-elements |
dbaron@6484 | 699 | of later fragment boxes, |
dbaron@6470 | 700 | it still counts as though it was generated. |
dbaron@6470 | 701 | However, since it is not generated, it does not contain any content. |
dbaron@6470 | 702 | </p> |
dbaron@6470 | 703 | |
dbaron@7813 | 704 | <p> |
dbaron@7813 | 705 | Specifying other values of 'display', 'position', |
dbaron@7813 | 706 | or 'float' is permitted, but is not allowed to change |
dbaron@7813 | 707 | the computed value of 'display-inside'. |
dbaron@7813 | 708 | (Since 'overflow', 'overflow-x', and 'overflow-y' only |
dbaron@7819 | 709 | apply to block containers, flex containers, and grid containers |
dbaron@7813 | 710 | the computed value of 'display-inside' is always |
dbaron@7819 | 711 | ''block'', ''flex'' or ''grid''. |
dbaron@7813 | 712 | <span class="issue">Need to specify exactly how this works, |
dbaron@7813 | 713 | but it depends on |
dbaron@7813 | 714 | having 'display-inside' and 'display-outside' specified.</span> |
dbaron@6470 | 715 | </p> |
dbaron@6470 | 716 | |
dbaron@6470 | 717 | <p> |
dbaron@6470 | 718 | To match the model for other pseudo-elements |
dbaron@6470 | 719 | where the pseudo-elements live inside their corresponding element, |
dbaron@6484 | 720 | declarations in ''::nth-fragment()'' pseudo-elements override |
dbaron@6470 | 721 | declarations in rules without the pseudo-element. |
dbaron@6470 | 722 | The relative priority within such declarations is determined |
dbaron@6470 | 723 | by normal cascading order (see [[!CSS21]]). |
dbaron@6470 | 724 | </p> |
dbaron@6470 | 725 | |
dbaron@6470 | 726 | <p> |
dbaron@6484 | 727 | Styles specified on ''::nth-fragment()'' pseudo-elements |
dbaron@6484 | 728 | do affect inheritance to content within the <i>fragment box</i>. |
dbaron@6484 | 729 | In other words, the content within the <i>fragment box</i> must |
dbaron@6484 | 730 | inherit from the fragment box's style (i.e., the pseudo-element style) |
dbaron@6470 | 731 | rather than directly from the element. |
dbaron@6484 | 732 | This means that elements split between fragment boxes may |
dbaron@6470 | 733 | have different styles for different parts of the element. |
dbaron@6470 | 734 | </p> |
dbaron@6470 | 735 | |
dbaron@6472 | 736 | <p class="issue"> |
dbaron@6472 | 737 | This inheritance rule allows specifying styles indirectly |
dbaron@6472 | 738 | (by using explicit ''inherit'' or using default inheritance |
dbaron@6472 | 739 | on properties that don't apply to '':first-letter'') |
dbaron@6472 | 740 | that can't be specified directly |
dbaron@6472 | 741 | (based on the rules in the next section). |
dbaron@6472 | 742 | This is a problem. |
dbaron@6484 | 743 | The restrictions that apply to styling inside fragments |
dbaron@6484 | 744 | should also apply to inheritance from fragments. |
dbaron@6472 | 745 | </p> |
dbaron@6472 | 746 | |
dbaron@6480 | 747 | <div class="example"> |
dbaron@6480 | 748 | <table class="source-demo-pair"><tr><td><pre><!DOCTYPE HTML> |
dbaron@6480 | 749 | <style> |
dbaron@6480 | 750 | .article { |
dbaron@6484 | 751 | overflow: fragments; |
dbaron@6480 | 752 | } |
dbaron@6484 | 753 | .article::nth-fragment(1) { |
dbaron@6480 | 754 | font-size: 1.5em; |
dbaron@6480 | 755 | margin-bottom: 1em; |
dbaron@6480 | 756 | height: 4em; |
dbaron@6480 | 757 | } |
dbaron@6491 | 758 | .article::nth-fragment(2) { |
dbaron@6480 | 759 | margin-left: 5em; |
dbaron@6480 | 760 | margin-right: 2em; |
dbaron@6480 | 761 | } |
dbaron@6480 | 762 | </style> |
dbaron@6480 | 763 | <div class="article"> |
dbaron@6480 | 764 | The <code>font-size</code> property<i>...</i> |
dbaron@6480 | 765 | </div></pre></td><td> |
dbaron@6484 | 766 | <div class="article-font-inherit-demo one">The <code>font-size</code> property<br>specified on the fragment<br>is inherited into the</div> |
dbaron@6484 | 767 | <div class="article-font-inherit-demo two">descendants of the fragment.<br>This means that inherited<br>properties can be used<br>reliably on a fragment, as in<br>this example.</div> |
dbaron@6480 | 768 | </td></tr></table> |
dbaron@6480 | 769 | </div> |
dbaron@6478 | 770 | |
dbaron@6484 | 771 | <h4 id="style-in-fragments">Styling inside fragments</h4> |
dbaron@6470 | 772 | |
dbaron@6470 | 773 | <p class="issue"> |
dbaron@6484 | 774 | Should this apply to fragment overflow only, |
dbaron@6470 | 775 | or also to paginated overflow, |
dbaron@6470 | 776 | or even to pagination across pages? |
dbaron@6470 | 777 | </p> |
dbaron@6470 | 778 | |
dbaron@6470 | 779 | <p> |
dbaron@6484 | 780 | The ''::nth-fragment()'' pseudo-element |
dbaron@6470 | 781 | can also be used to style |
dbaron@6484 | 782 | content inside of a <i>fragment box</i>. |
dbaron@6470 | 783 | Unlike the ''::first-line'' and ''::first-letter'' pseudo-elements, |
dbaron@6484 | 784 | the ''::nth-fragment()'' pseudo-element can be applied |
dbaron@6470 | 785 | to parts of the selector other than the subject: |
dbaron@6470 | 786 | in particular, it can match ancestors of the subject. |
dbaron@6470 | 787 | However, the only CSS properties applied |
dbaron@6470 | 788 | by rules with such selectors |
dbaron@6470 | 789 | are those that apply |
dbaron@6470 | 790 | to the ''::first-letter'' pseudo-element. |
dbaron@6470 | 791 | </p> |
dbaron@6470 | 792 | |
dbaron@6470 | 793 | <p> |
dbaron@6470 | 794 | To be more precise, |
dbaron@6484 | 795 | when a rule's selector has ''::nth-fragment()'' pseudo-elements |
dbaron@6470 | 796 | attached to parts of the selector other than the subject, |
dbaron@6470 | 797 | the declarations in that rule apply to |
dbaron@6470 | 798 | a fragment (or pseudo-element thereof) when: |
dbaron@6470 | 799 | </p> |
dbaron@6470 | 800 | <ol> |
dbaron@6470 | 801 | <li> |
dbaron@6470 | 802 | the declarations are for properties that apply to the |
dbaron@6470 | 803 | ''::first-letter'' pseudo-element, |
dbaron@6470 | 804 | </li> |
dbaron@6470 | 805 | <li> |
dbaron@6470 | 806 | the declarations would apply to |
dbaron@6470 | 807 | that fragment (or pseudo-element thereof) |
dbaron@6484 | 808 | had those ''::nth-fragment()'' pseudo-elements been removed, |
dbaron@6470 | 809 | with a particular association between |
dbaron@6470 | 810 | each sequence of simple selectors and the element it matched, |
dbaron@6470 | 811 | and |
dbaron@6470 | 812 | </li> |
dbaron@6470 | 813 | <li> |
dbaron@6484 | 814 | for each removed ''::nth-fragment()'' pseudo-element, |
dbaron@6484 | 815 | the fragment lives within a <i>fragment box</i> |
dbaron@6470 | 816 | of the element associated in that association |
dbaron@6470 | 817 | with the selector that the pseudo-element was attached to, |
dbaron@6470 | 818 | and whose index matches the pseudo-element. |
dbaron@6470 | 819 | </li> |
dbaron@6470 | 820 | </ol> |
dbaron@6470 | 821 | |
dbaron@6481 | 822 | <div class="example"> |
dbaron@6481 | 823 | <table class="source-demo-pair"><tr><td><pre><!DOCTYPE HTML> |
dbaron@6481 | 824 | <style> |
dbaron@6481 | 825 | .dark-columns { |
dbaron@6484 | 826 | overflow: fragments; |
dbaron@6481 | 827 | width: 6em; |
dbaron@6481 | 828 | height: 10em; |
dbaron@6481 | 829 | float: left; |
dbaron@6481 | 830 | margin-right: 1em; |
dbaron@6481 | 831 | font: medium/1.25 Times New |
dbaron@6481 | 832 | Roman, Times, serif; |
dbaron@6481 | 833 | } |
dbaron@6484 | 834 | .dark-columns::nth-fragment(1) { |
dbaron@6481 | 835 | background: aqua; color: black; |
dbaron@6481 | 836 | } |
dbaron@6484 | 837 | .dark-columns::nth-fragment(1) :link { |
dbaron@6481 | 838 | color: blue; |
dbaron@6481 | 839 | } |
dbaron@6484 | 840 | .dark-columns::nth-fragment(1) :visited { |
dbaron@6481 | 841 | color: purple; |
dbaron@6481 | 842 | } |
dbaron@6484 | 843 | .dark-columns::nth-fragment(2) { |
dbaron@6481 | 844 | background: navy; color: white; |
dbaron@6481 | 845 | } |
dbaron@6484 | 846 | .dark-columns::nth-fragment(2) :link { |
dbaron@6481 | 847 | color: aqua; |
dbaron@6481 | 848 | } |
dbaron@6484 | 849 | .dark-columns::nth-fragment(2) :visited { |
dbaron@6481 | 850 | color: fuchsia; |
dbaron@6481 | 851 | } |
dbaron@6481 | 852 | </style> |
dbaron@6481 | 853 | <div class="dark-columns"> |
dbaron@6481 | 854 | <i>...</i> |
dbaron@6481 | 855 | </div></pre></td><td> |
dbaron@6484 | 856 | <div class="dark-columns-demo one">In this<br><a href="http://en.wiktionary.org/wiki/example">example</a>, the<br>text flows<br>from one<br>light-colored<br>fragment into<br>another<br>dark-colored</div> |
dbaron@6484 | 857 | <div class="dark-columns-demo two">fragment. We<br>therefore want<br>different styles<br>for <a href="http://www.w3.org/Provider/Style/IntoContext.html">hyperlinks</a><br>in the different<br>fragments.</div> |
dbaron@6481 | 858 | </td></tr></table> |
dbaron@6481 | 859 | </div> |
dbaron@6481 | 860 | |
dbaron@6478 | 861 | |
dbaron@6470 | 862 | <h3 id="max-lines">The 'max-lines' property</h3> |
dbaron@6470 | 863 | |
dbaron@6470 | 864 | <p> |
dbaron@6470 | 865 | Authors may wish to style the opening lines of an element |
dbaron@6470 | 866 | with different styles |
dbaron@6484 | 867 | by putting those opening lines in a separate fragment. |
dbaron@6470 | 868 | However, since it may be difficult to predict the exact height |
dbaron@6470 | 869 | occupied by those lines |
dbaron@6484 | 870 | in order to restrict the first fragment to that height, |
dbaron@6470 | 871 | this specification introduces a 'max-lines' property |
dbaron@6484 | 872 | that forces a fragment to break |
dbaron@6470 | 873 | after a specified number of lines. |
dbaron@6470 | 874 | This forces a break after the given number of lines |
dbaron@6470 | 875 | contained within the element or its descendants, |
dbaron@6470 | 876 | as long as those lines are in the same block formatting context. |
dbaron@6470 | 877 | </p> |
dbaron@6470 | 878 | |
dbaron@6470 | 879 | <table class=propdef> |
dbaron@6470 | 880 | <tr> |
dbaron@6470 | 881 | <th>Name: |
dbaron@6470 | 882 | <td><dfn>max-lines</dfn> |
dbaron@6470 | 883 | <tr> |
dbaron@6470 | 884 | <th><a href="#values">Value</a>: |
dbaron@6470 | 885 | <td>none | <integer> |
dbaron@6470 | 886 | <tr> |
dbaron@6470 | 887 | <th>Initial: |
dbaron@6470 | 888 | <td>none |
dbaron@6470 | 889 | <tr> |
dbaron@6470 | 890 | <th>Applies to: |
dbaron@6484 | 891 | <td>fragment boxes |
dbaron@6470 | 892 | <tr> |
dbaron@6470 | 893 | <th>Inherited: |
dbaron@6470 | 894 | <td>no |
dbaron@6470 | 895 | <tr> |
dbaron@6482 | 896 | <th>Animatable: |
dbaron@6482 | 897 | <td>as <a href="http://www.w3.org/TR/css3-transitions/#animatable-types">integer</a> |
dbaron@6482 | 898 | <tr> |
dbaron@6470 | 899 | <th>Percentages: |
dbaron@6470 | 900 | <td>N/A |
dbaron@6470 | 901 | <tr> |
dbaron@6470 | 902 | <th>Media: |
dbaron@6470 | 903 | <td>visual |
dbaron@6470 | 904 | <tr> |
dbaron@6470 | 905 | <th>Computed value: |
dbaron@6470 | 906 | <td>specified value |
dbaron@6470 | 907 | <tr> |
dbaron@6470 | 908 | <th>Canonical order: |
dbaron@6470 | 909 | <td><abbr title="follows order of property value definition">per grammar</abbr> |
dbaron@6470 | 910 | </table> |
dbaron@6470 | 911 | |
dbaron@6470 | 912 | <dl> |
dbaron@6470 | 913 | <dt>none |
dbaron@6470 | 914 | <dd> |
dbaron@6470 | 915 | <p> |
dbaron@6470 | 916 | Breaks occur only as specified elsewhere. |
dbaron@6470 | 917 | </p> |
dbaron@6470 | 918 | </dd> |
dbaron@6470 | 919 | |
dbaron@6470 | 920 | <dt><integer> |
dbaron@6470 | 921 | <dd> |
dbaron@6470 | 922 | <p> |
dbaron@6470 | 923 | In addition to any breaks specified elsewhere, |
dbaron@6470 | 924 | a break is forced before any line that would exceed |
dbaron@6470 | 925 | the given number of lines |
dbaron@6470 | 926 | being placed inside the element |
dbaron@6470 | 927 | (excluding lines that are in |
dbaron@6470 | 928 | a different block formatting context from |
dbaron@6470 | 929 | the block formatting context to which |
dbaron@6470 | 930 | an unstyled child of the element would belong). |
dbaron@6470 | 931 | </p> |
dbaron@6470 | 932 | |
dbaron@6470 | 933 | <p class="issue"> |
dbaron@6470 | 934 | If there are multiple boundaries between this line |
dbaron@6470 | 935 | and the previous, where exactly (in terms of element |
dbaron@6470 | 936 | boundaries) is the break forced? |
dbaron@6470 | 937 | </p> |
dbaron@6470 | 938 | |
dbaron@6470 | 939 | <p> |
dbaron@6470 | 940 | Only positive integers are accepted. |
dbaron@6470 | 941 | Zero or negative integers are a parse error. |
dbaron@6470 | 942 | </p> |
dbaron@6470 | 943 | </dd> |
dbaron@6470 | 944 | </dl> |
dbaron@6470 | 945 | |
dbaron@6484 | 946 | <p class="issue">Should this apply to fragment overflow only, or also |
dbaron@6470 | 947 | to pagination?</p> |
dbaron@6470 | 948 | |
dbaron@6479 | 949 | <div class="example"> |
dbaron@6479 | 950 | <table class="source-demo-pair"><tr><td><pre><!DOCTYPE HTML> |
dbaron@6479 | 951 | <style> |
dbaron@6479 | 952 | .article { |
dbaron@6484 | 953 | overflow: fragments; |
dbaron@6479 | 954 | } |
dbaron@6479 | 955 | .article::first-letter { |
dbaron@6479 | 956 | font-size: 2em; |
dbaron@6479 | 957 | line-height: 0.9; |
dbaron@6479 | 958 | } |
dbaron@6484 | 959 | .article::nth-fragment(1) { |
dbaron@6479 | 960 | font-size: 1.5em; |
dbaron@6479 | 961 | max-lines: 3; |
dbaron@6479 | 962 | } |
dbaron@6491 | 963 | .article::nth-fragment(2) { |
dbaron@6479 | 964 | column-count: 2; |
dbaron@6479 | 965 | } |
dbaron@6479 | 966 | </style> |
dbaron@6479 | 967 | <div class="article"> |
dbaron@6479 | 968 | <i>...</i> |
dbaron@6479 | 969 | </div></pre></td><td> |
dbaron@6479 | 970 | <div class="article-max-lines-demo one">The max-lines property allows<br>authors to use a larger font for the first<br>few lines of an article. Without the</div> |
dbaron@6479 | 971 | <div class="article-max-lines-demo two">max-lines property, authors<br>might have to use the<br>'height' property instead, but<br>that would leave a slight gap<br>if the author miscalculated<br>how much height a given<br>number of lines would<br>occupy (which might be</div> |
dbaron@6479 | 972 | <div class="article-max-lines-demo three">particularly hard if the author<br>didn't know what text would<br>be filling the space, exactly<br>what font would be used, or<br>exactly which platform's font<br>rendering would be used to<br>display the font).</div> |
dbaron@6479 | 973 | </td></tr></table> |
dbaron@6479 | 974 | </div> |
dbaron@6478 | 975 | |
dbaron@6493 | 976 | <h2 id="static-media">Overflow in static media</h2> |
dbaron@6493 | 977 | |
dbaron@6493 | 978 | <p class="issue"> |
dbaron@6493 | 979 | This specification should define useful behavior |
dbaron@6493 | 980 | for all values of 'overflow' |
dbaron@6493 | 981 | in static media (such as print). |
dbaron@6493 | 982 | Current implementation behavior is quite poor and |
dbaron@6493 | 983 | produces unexpected results when authors have not considered |
dbaron@6493 | 984 | what will happen when |
dbaron@6493 | 985 | the content they produce for interactive media |
dbaron@6493 | 986 | is printed. |
dbaron@6493 | 987 | </p> |
dbaron@6493 | 988 | |
dbaron@6470 | 989 | <h2 id="conformance"> |
dbaron@6470 | 990 | Conformance</h2> |
dbaron@6470 | 991 | |
dbaron@6470 | 992 | <h3 id="placement"> |
dbaron@6470 | 993 | Module interactions</h3> |
dbaron@6470 | 994 | |
dbaron@6470 | 995 | <p>This module extends the 'overflow' |
dbaron@6470 | 996 | feature defined in [[CSS21]] section 11.1.1. It defines additional |
dbaron@6470 | 997 | overflow handling mechanisms that implementations must implement as |
dbaron@6470 | 998 | described in this module in order to conform to this module.</p> |
dbaron@6470 | 999 | |
dbaron@6470 | 1000 | <p>No properties in this module apply to the <code>::first-line</code> or |
dbaron@6470 | 1001 | <code>::first-letter</code> pseudo-elements.</p> |
dbaron@6470 | 1002 | |
dbaron@6470 | 1003 | <h3 id="values"> |
dbaron@6470 | 1004 | Values</h3> |
dbaron@6470 | 1005 | |
dbaron@6470 | 1006 | <p>This specification follows the |
dbaron@6470 | 1007 | <a href="http://www.w3.org/TR/CSS21/about.html#property-defs">CSS property |
dbaron@6470 | 1008 | definition conventions</a> from [[!CSS21]]. Value types not defined in |
dbaron@6470 | 1009 | this specification are defined in CSS Level 2 Revision 1 [[!CSS21]]. |
dbaron@6470 | 1010 | Other CSS modules may expand the definitions of these value types: for |
dbaron@6470 | 1011 | example [[CSS3COLOR]], when combined with this module, expands the |
dbaron@6470 | 1012 | definition of the <color> value type as used in this specification.</p> |
dbaron@6470 | 1013 | |
dbaron@6470 | 1014 | <p>In addition to the property-specific values listed in their definitions, |
dbaron@6470 | 1015 | all properties defined in this specification also accept the |
dbaron@6470 | 1016 | <a href="http://www.w3.org/TR/CSS21/cascade.html#value-def-inherit">inherit</a> |
dbaron@6470 | 1017 | keyword as their property value. For readability it has not been repeated |
dbaron@6470 | 1018 | explicitly. |
dbaron@6470 | 1019 | |
dbaron@6470 | 1020 | |
dbaron@6470 | 1021 | <h3 id="conventions"> |
dbaron@6470 | 1022 | Document conventions</h3> |
dbaron@6470 | 1023 | |
dbaron@6470 | 1024 | <p>Conformance requirements are expressed with a combination of |
dbaron@6470 | 1025 | descriptive assertions and RFC 2119 terminology. The key words âMUSTâ, |
dbaron@6470 | 1026 | âMUST NOTâ, âREQUIREDâ, âSHALLâ, âSHALL NOTâ, âSHOULDâ, âSHOULD NOTâ, |
dbaron@6470 | 1027 | âRECOMMENDEDâ, âMAYâ, and âOPTIONALâ in the normative parts of this |
dbaron@6470 | 1028 | document are to be interpreted as described in RFC 2119. |
dbaron@6470 | 1029 | However, for readability, these words do not appear in all uppercase |
dbaron@6470 | 1030 | letters in this specification. |
dbaron@6470 | 1031 | |
dbaron@6470 | 1032 | <p>All of the text of this specification is normative except sections |
dbaron@6470 | 1033 | explicitly marked as non-normative, examples, and notes. [[!RFC2119]]</p> |
dbaron@6470 | 1034 | |
dbaron@6470 | 1035 | <p>Examples in this specification are introduced with the words âfor exampleâ |
dbaron@6470 | 1036 | or are set apart from the normative text with <code>class="example"</code>, |
dbaron@6470 | 1037 | like this: |
dbaron@6470 | 1038 | |
dbaron@6470 | 1039 | <div class="example"> |
dbaron@6470 | 1040 | <p>This is an example of an informative example.</p> |
dbaron@6470 | 1041 | </div> |
dbaron@6470 | 1042 | |
dbaron@6470 | 1043 | <p>Informative notes begin with the word âNoteâ and are set apart from the |
dbaron@6470 | 1044 | normative text with <code>class="note"</code>, like this: |
dbaron@6470 | 1045 | |
dbaron@6470 | 1046 | <p class="note">Note, this is an informative note.</p> |
dbaron@6470 | 1047 | |
dbaron@6470 | 1048 | <h3 id="conformance-classes"> |
dbaron@6470 | 1049 | Conformance classes</h3> |
dbaron@6470 | 1050 | |
dbaron@6483 | 1051 | <p>Conformance to CSS Overflow Module Level 3 |
dbaron@6470 | 1052 | is defined for three conformance classes: |
dbaron@6470 | 1053 | <dl> |
dbaron@6470 | 1054 | <dt><dfn title="style sheet!!as conformance class">style sheet</dfn> |
dbaron@6470 | 1055 | <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#style-sheet">CSS |
dbaron@6470 | 1056 | style sheet</a>. |
dbaron@6470 | 1057 | <dt><dfn>renderer</dfn></dt> |
dbaron@6470 | 1058 | <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> |
dbaron@6470 | 1059 | that interprets the semantics of a style sheet and renders |
dbaron@6470 | 1060 | documents that use them. |
dbaron@6470 | 1061 | <dt><dfn id="authoring-tool">authoring tool</dfn></dt> |
dbaron@6470 | 1062 | <dd>A <a href="http://www.w3.org/TR/CSS21/conform.html#user-agent">UA</a> |
dbaron@6470 | 1063 | that writes a style sheet. |
dbaron@6470 | 1064 | </dl> |
dbaron@6470 | 1065 | |
dbaron@6483 | 1066 | <p>A style sheet is conformant to CSS Overflow Module Level 3 |
dbaron@6470 | 1067 | if all of its statements that use syntax defined in this module are valid |
dbaron@6470 | 1068 | according to the generic CSS grammar and the individual grammars of each |
dbaron@6470 | 1069 | feature defined in this module. |
dbaron@6470 | 1070 | |
dbaron@6483 | 1071 | <p>A renderer is conformant to CSS Overflow Module Level 3 |
dbaron@6470 | 1072 | if, in addition to interpreting the style sheet as defined by the |
dbaron@6470 | 1073 | appropriate specifications, it supports all the features defined |
dbaron@6483 | 1074 | by CSS Overflow Module Level 3 by parsing them correctly |
dbaron@6470 | 1075 | and rendering the document accordingly. However, the inability of a |
dbaron@6470 | 1076 | UA to correctly render a document due to limitations of the device |
dbaron@6470 | 1077 | does not make the UA non-conformant. (For example, a UA is not |
dbaron@6470 | 1078 | required to render color on a monochrome monitor.) |
dbaron@6470 | 1079 | |
dbaron@6483 | 1080 | <p>An authoring tool is conformant to CSS Overflow Module Level 3 |
dbaron@6470 | 1081 | if it writes style sheets that are syntactically correct according to the |
dbaron@6470 | 1082 | generic CSS grammar and the individual grammars of each feature in |
dbaron@6470 | 1083 | this module, and meet all other conformance requirements of style sheets |
dbaron@6470 | 1084 | as described in this module. |
dbaron@6470 | 1085 | |
dbaron@6470 | 1086 | <h3 id="partial"> |
dbaron@6470 | 1087 | Partial implementations</h3> |
dbaron@6470 | 1088 | |
dbaron@6470 | 1089 | <p>So that authors can exploit the forward-compatible parsing rules to |
dbaron@6470 | 1090 | assign fallback values, CSS renderers <strong>must</strong> |
dbaron@6470 | 1091 | treat as invalid (and <a href="http://www.w3.org/TR/CSS21/conform.html#ignore">ignore |
dbaron@6470 | 1092 | as appropriate</a>) any at-rules, properties, property values, keywords, |
dbaron@6470 | 1093 | and other syntactic constructs for which they have no usable level of |
dbaron@6470 | 1094 | support. In particular, user agents <strong>must not</strong> selectively |
dbaron@6470 | 1095 | ignore unsupported component values and honor supported values in a single |
dbaron@6470 | 1096 | multi-value property declaration: if any value is considered invalid |
dbaron@6470 | 1097 | (as unsupported values must be), CSS requires that the entire declaration |
dbaron@6470 | 1098 | be ignored.</p> |
dbaron@6470 | 1099 | |
dbaron@6470 | 1100 | <h3 id="experimental"> |
dbaron@6470 | 1101 | Experimental implementations</h3> |
dbaron@6470 | 1102 | |
dbaron@6470 | 1103 | <p>To avoid clashes with future CSS features, the CSS2.1 specification |
dbaron@6470 | 1104 | reserves a <a href="http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords">prefixed |
dbaron@6470 | 1105 | syntax</a> for proprietary and experimental extensions to CSS. |
dbaron@6470 | 1106 | |
dbaron@6470 | 1107 | <p>Prior to a specification reaching the Candidate Recommendation stage |
dbaron@6470 | 1108 | in the W3C process, all implementations of a CSS feature are considered |
dbaron@6470 | 1109 | experimental. The CSS Working Group recommends that implementations |
dbaron@6470 | 1110 | use a vendor-prefixed syntax for such features, including those in |
dbaron@6470 | 1111 | W3C Working Drafts. This avoids incompatibilities with future changes |
dbaron@6470 | 1112 | in the draft. |
dbaron@6470 | 1113 | </p> |
dbaron@6470 | 1114 | |
dbaron@6470 | 1115 | <h3 id="testing"> |
dbaron@6470 | 1116 | Non-experimental implementations</h3> |
dbaron@6470 | 1117 | |
dbaron@6470 | 1118 | <p>Once a specification reaches the Candidate Recommendation stage, |
dbaron@6470 | 1119 | non-experimental implementations are possible, and implementors should |
dbaron@6470 | 1120 | release an unprefixed implementation of any CR-level feature they |
dbaron@6470 | 1121 | can demonstrate to be correctly implemented according to spec. |
dbaron@6470 | 1122 | |
dbaron@6470 | 1123 | <p>To establish and maintain the interoperability of CSS across |
dbaron@6470 | 1124 | implementations, the CSS Working Group requests that non-experimental |
dbaron@6470 | 1125 | CSS renderers submit an implementation report (and, if necessary, the |
dbaron@6470 | 1126 | testcases used for that implementation report) to the W3C before |
dbaron@6470 | 1127 | releasing an unprefixed implementation of any CSS features. Testcases |
dbaron@6470 | 1128 | submitted to W3C are subject to review and correction by the CSS |
dbaron@6470 | 1129 | Working Group. |
dbaron@6470 | 1130 | |
dbaron@6470 | 1131 | <p>Further information on submitting testcases and implementation reports |
dbaron@6470 | 1132 | can be found from on the CSS Working Group's website at |
dbaron@6470 | 1133 | <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>. |
dbaron@6470 | 1134 | Questions should be directed to the |
dbaron@6470 | 1135 | <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">[email protected]</a> |
dbaron@6470 | 1136 | mailing list. |
dbaron@6470 | 1137 | |
dbaron@6470 | 1138 | <h3 id="cr-exit-criteria"> |
dbaron@6470 | 1139 | CR exit criteria</h3> |
dbaron@6470 | 1140 | |
dbaron@6470 | 1141 | <p class=issue>[Change or remove the following CR exit criteria if |
dbaron@6470 | 1142 | the spec is not a module, but, e.g., a Note or a profile. This text was <a |
dbaron@6470 | 1143 | href="http://www.w3.org/Style/CSS/Tracker/actions/44"> decided on 2008-06-04.</a>]</p> |
dbaron@6470 | 1144 | |
dbaron@6470 | 1145 | <p> |
dbaron@6470 | 1146 | For this specification to be advanced to Proposed Recommendation, |
dbaron@6470 | 1147 | there must be at least two independent, interoperable implementations |
dbaron@6470 | 1148 | of each feature. Each feature may be implemented by a different set of |
dbaron@6470 | 1149 | products, there is no requirement that all features be implemented by |
dbaron@6470 | 1150 | a single product. For the purposes of this criterion, we define the |
dbaron@6470 | 1151 | following terms: |
dbaron@6470 | 1152 | |
dbaron@6470 | 1153 | <dl> |
dbaron@6470 | 1154 | <dt>independent <dd>each implementation must be developed by a |
dbaron@6470 | 1155 | different party and cannot share, reuse, or derive from code |
dbaron@6470 | 1156 | used by another qualifying implementation. Sections of code that |
dbaron@6470 | 1157 | have no bearing on the implementation of this specification are |
dbaron@6470 | 1158 | exempt from this requirement. |
dbaron@6470 | 1159 | |
dbaron@6470 | 1160 | <dt>interoperable <dd>passing the respective test case(s) in the |
dbaron@6470 | 1161 | official CSS test suite, or, if the implementation is not a Web |
dbaron@6470 | 1162 | browser, an equivalent test. Every relevant test in the test |
dbaron@6470 | 1163 | suite should have an equivalent test created if such a user |
dbaron@6470 | 1164 | agent (UA) is to be used to claim interoperability. In addition |
dbaron@6470 | 1165 | if such a UA is to be used to claim interoperability, then there |
dbaron@6470 | 1166 | must one or more additional UAs which can also pass those |
dbaron@6470 | 1167 | equivalent tests in the same way for the purpose of |
dbaron@6470 | 1168 | interoperability. The equivalent tests must be made publicly |
dbaron@6470 | 1169 | available for the purposes of peer review. |
dbaron@6470 | 1170 | |
dbaron@6470 | 1171 | <dt>implementation <dd>a user agent which: |
dbaron@6470 | 1172 | |
dbaron@6470 | 1173 | <ol class=inline> |
dbaron@6470 | 1174 | <li>implements the specification. |
dbaron@6470 | 1175 | |
dbaron@6470 | 1176 | <li>is available to the general public. The implementation may |
dbaron@6470 | 1177 | be a shipping product or other publicly available version |
dbaron@6470 | 1178 | (i.e., beta version, preview release, or ânightly buildâ). |
dbaron@6470 | 1179 | Non-shipping product releases must have implemented the |
dbaron@6470 | 1180 | feature(s) for a period of at least one month in order to |
dbaron@6470 | 1181 | demonstrate stability. |
dbaron@6470 | 1182 | |
dbaron@6470 | 1183 | <li>is not experimental (i.e., a version specifically designed |
dbaron@6470 | 1184 | to pass the test suite and is not intended for normal usage |
dbaron@6470 | 1185 | going forward). |
dbaron@6470 | 1186 | </ol> |
dbaron@6470 | 1187 | </dl> |
dbaron@6470 | 1188 | |
dbaron@6470 | 1189 | <p>The specification will remain Candidate Recommendation for at least |
dbaron@6470 | 1190 | six months. |
dbaron@6470 | 1191 | |
dbaron@6470 | 1192 | <h2 class=no-num id="acknowledgments"> |
dbaron@6470 | 1193 | Acknowledgments</h2> |
dbaron@6470 | 1194 | |
dbaron@6470 | 1195 | <p> |
dbaron@6470 | 1196 | Thanks especially to the feedback from |
dbaron@6496 | 1197 | Rossen Atanassov, |
dbaron@6496 | 1198 | Bert Bos, |
dbaron@6496 | 1199 | Tantek Ãelik, |
dbaron@6496 | 1200 | John Daggett, |
dbaron@6496 | 1201 | fantasai, |
dbaron@6496 | 1202 | Daniel Glazman, |
dbaron@6496 | 1203 | Vincent Hardy, |
dbaron@6470 | 1204 | Håkon Wium Lie, |
dbaron@6496 | 1205 | Peter Linss, |
dbaron@7815 | 1206 | Robert O'Callahan, |
dbaron@6470 | 1207 | Florian Rivoal, |
dbaron@6473 | 1208 | Alan Stearns, |
dbaron@6496 | 1209 | Steve Zilles, |
dbaron@6470 | 1210 | and all the rest of the |
dbaron@6470 | 1211 | <a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community. |
dbaron@6470 | 1212 | </p> |
dbaron@6470 | 1213 | |
dbaron@6470 | 1214 | <h2 class=no-num id="references"> |
dbaron@6470 | 1215 | References</h2> |
dbaron@6470 | 1216 | |
dbaron@6470 | 1217 | <h3 class="no-num" id="normative-references"> |
dbaron@6470 | 1218 | Normative references</h3> |
dbaron@6470 | 1219 | <!--normative--> |
dbaron@6470 | 1220 | |
dbaron@6470 | 1221 | <h3 class="no-num" id="other-references"> |
dbaron@6470 | 1222 | Other references</h3> |
dbaron@6470 | 1223 | <!--informative--> |
dbaron@6470 | 1224 | |
dbaron@6470 | 1225 | <h2 class="no-num" id="index"> |
dbaron@6470 | 1226 | Index</h2> |
dbaron@6470 | 1227 | <!--index--> |
dbaron@6470 | 1228 | |
dbaron@6470 | 1229 | <h2 class="no-num" id="property-index"> |
dbaron@6470 | 1230 | Property index</h2> |
dbaron@6470 | 1231 | <!-- properties --> |
dbaron@6470 | 1232 | |
dbaron@6470 | 1233 | </body> |
dbaron@6470 | 1234 | </html> |
dbaron@6470 | 1235 | <!-- Keep this comment at the end of the file |
dbaron@6470 | 1236 | Local variables: |
dbaron@6470 | 1237 | mode: sgml |
dbaron@6470 | 1238 | sgml-declaration:"~/SGML/HTML4.decl" |
dbaron@6470 | 1239 | sgml-default-doctype-name:"html" |
dbaron@6470 | 1240 | sgml-minimize-attributes:t |
dbaron@6470 | 1241 | sgml-nofill-elements:("pre" "style" "br") |
dbaron@6470 | 1242 | sgml-live-element-indicator:t |
dbaron@6470 | 1243 | sgml-omittag:nil |
dbaron@6470 | 1244 | sgml-shorttag:nil |
dbaron@6470 | 1245 | sgml-namecase-general:t |
dbaron@6470 | 1246 | sgml-general-insert-case:lower |
dbaron@6470 | 1247 | sgml-always-quote-attributes:t |
dbaron@6470 | 1248 | sgml-indent-step:nil |
dbaron@6470 | 1249 | sgml-indent-data:t |
dbaron@6470 | 1250 | sgml-parent-document:nil |
dbaron@6470 | 1251 | sgml-exposed-tags:nil |
dbaron@6470 | 1252 | sgml-local-catalogs:nil |
dbaron@6470 | 1253 | sgml-local-ecat-files:nil |
dbaron@6470 | 1254 | End: |
dbaron@6470 | 1255 | --> |
dbaron@6470 | 1256 |