[CSS21] padding/border/margin at element breaks

CSS1 says [1]:

  # If the inline element has margins, borders, padding or text
  # decorations attached, these will have no effect where the
  # element is broken:
  #          ----------
  # Several |emphasized
  #          ----------
  # -----
  # words| appear here.
  # -----

I just tried to find the equivalent statement in CSS2.1, and was
unable to do so.  I believe CSS2.1 should make an equivalent
statement for both inlines broken across lines, and for blocks
broken across pages.  (It's possible that for blocks, the padding
should not be ignored, though.  Somebody should try to test this
across browsers.)

For what it's worth, this behavior is mentioned in css3-page [2] and
in css3-background [3].


[1] http://www.w3.org/TR/1999/REC-CSS1-19990111#inline-elements
[2] http://www.w3.org/TR/2006/WD-css3-page-20061010/#page-properties
[3] http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-border-break

L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Wednesday, 24 January 2007 09:57:03 UTC