View Single Post
Old 09-05-2014, 02:00 AM   #43
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Jellby View Post
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.
dgatwood is offline   Reply With Quote