Closed Bug 522279 Opened 16 years ago Closed 16 years ago

Transparent block element within inline element doesn't show background of inline element

Categories

(Core :: Layout: Block and Inline, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: tuure, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729) A div with "display: block" inside a div with "display: inline" doesn't show the background of the outer div, but white background instead. Reproducible: Always Steps to Reproduce: 1. See URL Actual Results: Middle text has white background. Expected Results: Middle text has grey background. It seems that Safari and Opera behave the same way as Firefox, but IE doesn't.
IE is indeed the only one.
The relevant specification text is in http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level and I think it says our behavior is correct, but asking Boris to double-check.
And IE8 only does that in quirks mode (which is what this page is testing); in standards mode its behavior matches the spec and all the other browsers.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.