Closed Bug 705130 Opened 13 years ago Closed 13 years ago

css -moz-box-shadow ignores padding

Categories

(Core :: Layout, defect)

8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 485149

People

(Reporter: raze.condition, Unassigned)

Details

Attachments

(4 files, 2 obsolete files)

Attached file Firefox_bug.zip (obsolete) —
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0 Build ID: 20111104165243 Steps to reproduce: A form with a fieldset; the fieldset has padding, rounded corners and a box shadow. The CSS for the fieldset: form#form1 fieldset { border: none; background:#5a7e92; margin-bottom: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -ms-border-radius: 10px; border-radius: 10px; padding: 10px; <================= 1 margin:30px; -moz-box-shadow: 5px 5px 5px #0d0d0d; <================= 2 -webkit-box-shadow: 5px 5px 5px #0d0d0d; box-shadow: 5px 5px 5px #0d0d0d; } Actual results: In Firefox, the padding is opaque (it casts a shadow; see file FireFoxScreenShot.JPG in the attached ZIP). In Chrome, the padding is transparent (it does not cast a shadow; see file ChromeScreenShot.JPG in the attached ZIP). Expected results: The padding should not cast a shadow.
Attached file testcase (obsolete) —
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0 Can not reproduce, same result in any browser.
Component: DOM: CSS Object Model → Layout
QA Contact: style-system → layout
Please attach a simple HTML test file that shows the bug for you.
Attached image Screenshot
Thanks for your speedy reply! I've attached a few files (HTML, CSS, screenshot). See also the ZIP file originally attached (https://bugzilla.mozilla.org/attachment.cgi?id=576754), includes HTML, CSS, Firefox screenshot, Chrome screenshot.
Additional testing shows that the bug only occurs if the fieldset has a child <legend> element.
Attached file reduced testcase
Attachment #576754 - Attachment is obsolete: true
Attachment #576764 - Attachment is obsolete: true
Known bug:
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: