Sorry, I was thinking that instead of specifying a shadow just for top and
bottom, it would be more in keeping the concept of a shadow to change its
shape. So, to have a "top and bottom shadow", give it more height and less
width that the object whose shadow it is.
Thinking about the original post, perhaps it would be better to be able to
specify blur radius and/or spread on different sides?
Something like:
box-shadow: 0 0 black; /* No offset, no blur, no spread: shadow is
effectively invisible */
box-shadow-blur-radius: 20px 0 0 20px; /* blur two edges, keep other two
crisp */
box-shadow-blur-spread: 20px 0 0 20px; /* stretch out top and left, keep
bottom and right at 0 */
That would give crisp lines on right and bottom, and blurry edges on left
and top.
M
--
Mark Kenny
beingmrkenny.co.uk
@beingmrkenny
On 14 September 2011 16:51, Brad Kemper <brad.kemper@gmail.com> wrote:
>
> On Sep 14, 2011, at 8:40 AM, Mark Kenny wrote:
>
> I sent this from my other email, so apologies since it will come through
> twice.
>
> I think a better native solution would be to specify the shape of the
> shadow, for example:
>
> box-shadow-transform: height% width%;
>
> Where height% and width% were percentages of the box dimensions. Obviously
> other values could be used: absolute lengths, expressions such as original -
> x pixels etc.
>
>
> That might be useful at times, but I don't see how it is a better solution
> for Shi's situation. If the shadow was just shorter, then it would still
> have rounded corners from the blur. Whereas cropping the shadow or sending
> it to a lower layer than the element would give the sharp edge division that
> this layout needs.
>