Quote:
Originally Posted by Jellby
Hmm... as pointed by davidfor in another thread, w3schools says about " page-break-after":
Note: You cannot use this property on an empty <div> or on absolutely positioned elements.
I wonder where this comes from. I don't recall seeing anything about that in the spec, maybe it's just an oblique reference to the fact that some renderers (wrongly, as far as I know) discard empty elements.
|
The empty
div bit is bizarre. I can't imagine how that came from the spec. The absolutely positioned element bit... that was hard track down, because it isn't so much stated as implied very obliquely in thick, obfuscated language, but here it is:
Quote:
User Agents must apply these properties to block-level elements in the normal flow of the root element. User agents may also apply these properties to other elements, e.g., 'table-row' elements.
|
So agents must support these properties on statically positioned (and presumably relatively positioned) block-level elements, and
may optionally support them on non-block-level elements, absolutely positioned elements, or ostensibly even fixed-position elements.
So the comment isn't quite right in that the spec provides no prohibition against using these properties with absolutely positioned elements, but fully compliant UAs are allowed to completely ignore them if you do.