A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://lists.w3.org/Archives/Public/www-style/2014Apr/0003.html below:

[css3-background] Box-shadow spread with border-radius from fantasai on 2014-03-31 (www-style@w3.org from April 2014)

On 03/24/2014 09:36 AM, Matt Rakow wrote:
> Hi all,
>
> There seem to be a couple issues with the wording of the new box-shadow spread behavior with border-radius:
>
> 1. "when the ratio r of a border radius to the spread distance
>    is less than one" -- this should be the magnitude of the ratio,
>    to account for negative spread distances.

Hm. Actually, I don't think this should apply to negative spread
distances. Or if it does, it needs to be a different formula: if
the spread distance is negative and equal in magnitude to the
border radius, it is going to result in a sharp corner regardless.

   1+(1-1)^3 = 1 ratio adjustment

   20px + -20px*1 = 0 effective spread radius

I've made the adjustment for positive spreads only, for now.
(Equivalent to no change from the previous CR.) Let me know
if you think something else would be better.

> 2. The example formula is missing a closing parenthesis --
>    10px + 20px×(1 + (.5 - 1)^3

Fixed.

> 3. The definition does not explicitly state if the formula should
>    be applied independently to the X and Y directions.  I think
>    the answer is that it should, but it should probably be noted
>    in the spec text.

Fixed.

Thanks for the review!

~fantasai

Received on Tuesday, 1 April 2014 00:58:03 UTC


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4