![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
No browser (that I know of) does this properly anyway. e.g. HTML { background: cyan; margin: 2em; padding: 2em; } In a correct rendering of CSS, the 2em of blank space created by the padding should be cyan, but the 2em of blank space created by the margin should not. |
|
The background of the root element becomes the background of the canvas and covers the entire canvas, anchored at the same point as it would be if it was painted only for the root element itself. |
#2
| |||
| |||
|
|
Lachlan Hunt wrote: No, because the background colour of the root element is applied to the entire canvas: | The background of the root element becomes the background of the | canvas and covers the entire canvas, anchored at the same point as | it would be if it was painted only for the root element itself. http://www.w3.org/TR/CSS21/colors.html#q2 Only in CSS 2.1 (Draft). In CSS 1.0 and CSS 2.0 (both Recommendations), this is an error. |
![]() |
| Thread Tools | |
| Display Modes | |
| |