Closed
Bug 705130
Opened 13 years ago
Closed 13 years ago
css -moz-box-shadow ignores padding
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 485149
People
(Reporter: raze.condition, Unassigned)
Details
Attachments
(4 files, 2 obsolete files)
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.
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
Reporter | ||
Comment 3•13 years ago
|
||
Reporter | ||
Comment 4•13 years ago
|
||
Reporter | ||
Comment 5•13 years ago
|
||
Reporter | ||
Comment 6•13 years ago
|
||
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.
Reporter | ||
Comment 7•13 years ago
|
||
Additional testing shows that the bug only occurs if the fieldset has a child <legend> element.
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.
Description
•