Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

box-shadow adds size to the element #161

Open
ghost opened this issue Sep 20, 2011 · 0 comments
Open

box-shadow adds size to the element #161

ghost opened this issue Sep 20, 2011 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2011

Probably related to this other issue: #98

Applying box-shadow in IE causes the element to occupy more space, equal to the blur radius. It does not seem to affect positioning or actual box size.

For instance, on an element that is 100% total width of the page, adding box-shadow:0 0 100px #000; will cause a horizontal scroll bar and add 100px space to the right and bottom of the element (not the top or left as far as I could tell).

Normally in browsers that support this, the viewport will clip the shadow rather than expand to contain it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants