Re: [css-images] Repeating radial gradient with (near-)zero height

On Fri, Apr 5, 2013 at 6:48 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Hi,
>
> ยง4.3 has:
>
>> If the height of a repeating radial gradient is zero, or is close
>> enough to zero that the implementation knows that the physical
>> resolution of the output device is insufficient to faithfully render
>> the gradient, the implementation must find the average color of the
>> gradient and render the gradient as a solid-color image equal to the
>> average color.
>
>
> I was wondering what height this is referring to, and why it is more
> relevant than the width. I wrote a whole email asking for clarification
> before I figured it out.
>
> Because the gradient line of radial gradients is always towards the right,
> it is possible that the first and last gradient stops are at big enough
> distance (and thus the previous paragraphs do not apply) but the gradient
> still needs to be averaged to a solid color because a flat (or very narrow)
> ellipse would require it to be repeated too "frequently" in the vertical
> direction.
>
> I suggest rephrasing, and adding a special case when the width is zero:
>
>> If width of the ending shape of a repeating radial gradient is
>> non-zero and the height is zero, or is close enough to zero that the
>> implementation knows that the physical resolution of the output
>> device is insufficient to faithfully render the gradient, the
>> implementation must find the average color of the gradient and render
>> the gradient as a solid-color image equal to the average color.
>>
>> Note: The <a href="#degenerate-radials">Degenerate Radial
>> Gradients</a> section describes how the ending shape is adjusted when
>> its width is zero.

Sounds good to me. Done.

~TJ

Received on Monday, 8 April 2013 18:24:18 UTC