Closed Bug 237640 Opened 21 years ago Closed 21 years ago

the css background-color of parent element does not shine through in its children, if the children are block elements

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: haraldsaller, Assigned: dbaron)

References

()

Details

(Keywords: testcase)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6) Gecko/20040113 snippet: <span class="brownBackground">some text with <p>brown background</p></span> ... here, only "some text with" has the color defined for the <div>, but everything within <p> has not. Only if <p> were specified as inline element (display:inline), also its content has the background color, as it ought to be in every case, doesn't it? Reproducible: Always Steps to Reproduce: 1. (see Details) 2. 3. Actual Results: (see Details) Expected Results: child block elements should show their parent's background color.
Keywords: testcase
OS: MacOS X → All
Hardware: Macintosh → All
Summary: the css background-color of parent element does not shine through in its children, if the children are block elements → the css background-color of parent element does not shine through in its children, if the children are block elements
The block box splits the inline boxes, so it's not actually inside them. Hence no shining through can happen. You can put some borders on the span to see what the boxes look like.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.