W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: magic corner gradient revisited

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 8 Aug 2011 23:24:52 -0700
Message-Id: <B6F01AE0-05C0-4E72-9799-646C81205690@gmail.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Behnam Esfahbod ZWNJ <behnam@zwnj.org>, fantasai <fantasai.lists@inkedblade.net>, www-style list <www-style@w3.org>
To: Brian Manthos <brianman@microsoft.com>
Yes, that is very similar to how I was originally saying it, but with quadrant to make sure the direction along the path is correct. This wording should be fine. 

Sent from my iPad

On Aug 8, 2011, at 9:24 PM, Brian Manthos <brianman@microsoft.com> wrote:

> I looked at this some more.  The first time I didn't notice this phrase in the right light...
> 
> "line drawn perpendicular to the gradient-line through the center"
> 
> While I prefer the simple "here's the math" approach, I think this might work.
> 
> Brad, can take a look and see if it works for you?
> 
> Behnam should probably take a look as well since he opened the original "Gradient Magic" thread.
> 
> -Brian
> 
> 
> 
>> -----Original Message-----
>> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
>> Behalf Of Brian Manthos
>> Sent: Monday, August 08, 2011 6:42 PM
>> To: Tab Atkins Jr.
>> Cc: Brad Kemper; fantasai; www-style list
>> Subject: RE: magic corner gradient revisited
>> 
>> # If the argument specifies a corner to angle towards, the gradient
>> must be rendered identically to an angle-based gradient with an angle
>> chosen such that the endpoint of the gradient is in the same quadrant
>> as the indicated corner, and a line drawn perpendicular to the
>> gradient-line through the center of the box intersects the two
>> neighboring corners.
>> 
>> This phrasing doesn't narrow down the angle that must be used.  In
>> fact, pretty much any angle in the quadrant satisfies the specified
>> criteria.
>> 
>> If you don't like my slope description (from Tue 7/26/2011 12:17 PM
>> PST), I can provide an alternative involving around-center rotation of
>> the box by 90 degrees.
Received on Tuesday, 9 August 2011 06:25:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:43 GMT