Closed Bug 606216 Opened 15 years ago Closed 15 years ago

box-shadow seems to contribute to layout

Categories

(Core :: Web Painting, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 446693

People

(Reporter: robin, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 It appears that the box-shadow is taken into account for the size of a box when according to http://www.w3.org/TR/css3-background/#box-shadow it shouldn't be ("Shadows do not influence layout"). This can be seen with the attached test page. A div that has your normal 100%, when given a box-shadow, causes a horizontal scroll bar to show up. It shouldn't. Note that this happens even if the shadow is only vertical (the x offset is 0) if it has a blur, since the blur will bleed on the sides). Reproducible: Always Steps to Reproduce: 1. Style a box with a shadow. 2. 3. Actual Results: It over-contributes in its size. Expected Results: It ought to be truncated to the viewport (in this case, there may be a more general behaviour to match the spec).
fixed a few weeks ago
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: