<body> is magic in HTML but not in XHTML, and there are bugs in some edge
cases. (Note that this bug is invalid per the current spec, but the plan is to
change the spec:
http://lists.w3.org/Archives/Public/www-style/2007Apr/0196.html )
Reproducible: Always
Steps to Reproduce:
1. Run the test cases.
2.
3.
Actual Results:
'background-color', 'background-image' and 'overflow' is not handled
equivalently between HTML and XHTML, and there are some bugs in the edge cases
as well.
Expected Results:
'background-color', 'background-image' and 'overflow' should work the same in
both HTML and XHTML when applied to <body>. Edge cases should be handled as
what the current spec says should happen for HTML.
There are two isHTMLDocument background checks in RenderBox and then the overflow isHTMLDocument check is in FrameView I think. This was all done on purpose following the spec of course, but I suppose we could change it.
Apparently background behavior matches Firefox more or less, overflow behavior doesn't. We're following the curent spec more closely than anyone it seems.
And for what it's worth, I'd like XHTML to be always nonāmagical, just as every other XML format. There is a reason we have both, and it's not so that you can add slashes to the end of empty element tags. If you need magical behaviour, which only exists for legacy reasons, then you should be using HTML, not XML.
2007-05-04 05:42 PDT, Simon Pieters
2007-05-04 05:43 PDT, Simon Pieters
2007-05-04 05:44 PDT, Simon Pieters
2007-05-04 05:45 PDT, Simon Pieters
2007-05-04 05:46 PDT, Simon Pieters
2007-05-04 05:49 PDT, Simon Pieters
2007-05-04 05:50 PDT, Simon Pieters
2007-05-04 05:52 PDT, Simon Pieters
2007-05-04 05:52 PDT, Simon Pieters
2007-05-04 05:53 PDT, Simon Pieters
2007-05-04 05:54 PDT, Simon Pieters
2007-05-04 05:55 PDT, Simon Pieters
2007-05-04 05:56 PDT, Simon Pieters