CSS1 Test Suite: 5.5.10 padding

The style declarations which apply to the text below are:

    .zero {background-color: silver; padding: 0;}
    .one {padding: 25px; background-color: aqua;}
    .two {padding: -10px; background-color: aqua;}

This element has a class of zero.

This element is unstyled save for a background color of gray. It contains an inline element of class `one`, giving it an aqua background and a 25px padding. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. There may be implementation-specific limits on how much of the padding the user agent is able to display above and below each line. However, there should be at least 25px of padding to the left side of the inline box in the first line it appears, and 25px of padding to the right side of the inline element box in the last line where it appears.

This element has a class of zero.

This element is unstyled save for a background color of gray. It contains an inline element of class `two`, giving it an aqua background and no padding, since negative padding values are not allowed. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height.

This element has a class of zero.

TABLE Testing Section
| This element has a class of zero. This element is unstyled save for a background color of gray. It contains an inline element of class `one`, giving it an aqua background and a 25px padding. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. There may be implementation-specific limits on how much of the padding the user agent is able to display above and below each line. However, there should be at least 25px of padding to the left side of the inline box in the first line it appears, and 25px of padding to the right side of the inline element box in the last line where it appears. This element has a class of zero. This element is unstyled save for a background color of gray. It contains an inline element of class `two`, giving it an aqua background and no padding, since negative padding values are not allowed. Padding on inline elements does not affect line-height calculations, so all lines in this element should have the same line-height. This element has a class of zero.