Closed
Bug 216167
Opened 21 years ago
Closed 20 years ago
border-collapse with fixed background breaks block-level children
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bmills, Unassigned)
References
Details
Attachments
(1 file)
1.87 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 *IF border-collapse: collapse is set,* Non-fixed backgrounds and borders of child elements of table elements with fixed backgrounds (e.g. tr and td, see example code to follow) do not display, and are instead overridden by the parent's fixed background. However, non-fixed background of td overrides fixed background of parent tr. Reproducible: Always Steps to Reproduce: 1. View example code (to follow) 2. 3. Actual Results: Table 1: Row 1 displays background image for div. Row 2, column 1 displays correctly. Row 2, column 2 displays background image for div. Table 2: Displays correctly. Column 1 has border around each element, column 2 has border around each element and border around both elements (correctly). Table 3: Column 1 shows td's scroll background (overriding tr's fixed background) in div instead of div's background. Column 2 shows tr's background for div element (instead of div's scroll background). Table 4: Column 1's td background correctly overrides tr's background, but div's border is still missing. Column 2 displays correctly (div's background overrides tr's background). Table 5: Correct. all elements black with blue border (possibly with some image background *outside* the border), but row 2 column 1 does not have image background. Expected Results: Table 1: all elements should be black with blue border (possibly with some image background *outside* the border), but row 2 column 1 should not have image background. Table 2: as rendered (see above) Table 3: Column 1 should have black background and blue border on both elements, and possibly some Firebird image around the border. Column 2 should have Firebird image and blue background on both elements, with some Mozilla banner around the border. Table 4: All elements should be black with blue border. Column 1 should have black around border, column 2 should have Mozilla banner around border. Table 5: same as table 1, possibly with extra space between elements. Workaround: specify all solid-color backgrounds within tables as "fixed". This will not work for image backgrounds.
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Comment 2•21 years ago
|
||
Could be related to <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=195291">bug 195291</a>, probably related to <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=4510">bug 4510</a> (esp. comments therein regarding inheritance of backgrounds), although the border problem isn't covered by either.
fantasai doesnt your patch in bug 4510 fix this? if yes please mark the bug either dependent or dupe it.
Comment 4•21 years ago
|
||
Marking dependent anyway; behavior will need to be retested once that lands no matter what.
Depends on: 4510
Looks like I forgot to rebuild with the patch before: yes, 4510 does fix this bug :)
Comment 7•20 years ago
|
||
-> FIXED per comment 6
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•