Re: [css3-border][css3-background] border-radius with <angle>

Tab Atkins Jr. (2012-03-13 20:33):
> On Tue, Mar 13, 2012 at 4:58 AM, Christoph Päper
>> 
>>  border-radius: 3em / 4em; /* =: rh / rv */
>> 
>> Since the two-value notation already looks like it specifies the tangent of the [angle], I wondered whether border radius could also be specified with <angle> values. You would of course also need some kind of scaling factor, perhaps the lengths of the hypotenuse.
>> 
>>  border-radius: 37deg 5em;
>> 
>> imagine we wanted to introduce […] “cut” corner shapes where the hypotenuse (or diameter) would become visible instead of some arc.
>> 
>>  border-corner: _normal_ | curved | sharp
>>  border-radius – if specified sets ‘border-corner’ to ‘curved’

  <border-radius> := [ <length> [ ‘/’ <length> ]? ] | [ <angle> <length> ]

Actually, since ‘border-radius’ defaults to zero, ‘curved’ would equal ‘normal’ and therefore one could replace the other.

When I imagine how a combination of arc and cutoff would look like, I don’t think anyone would ever want that so I’m retracting the alternative proposal with a separate ‘border-cutoff’ property.

I also don’t think it would be useful to draw arcs for one or two lengths and lines for an angle and a length, although that would spare us one property.

> While this would be an alternate and unambiguous way of specifying the border-radius, do you have evidence of anyone actually asking for this, ever?
   ______________________________________
  /                                      \
 | Um, I just – i.e. two weeks ago – did. |
 | Other than that, no.                   |
  \______________________________________/

If it was about rounded corners an alternate syntax probably wouldn’t be worth it (for Level 4 anyway), but with cutoffs it might – every Battlestar Galactica fan out there wants this. :)

Received on Wednesday, 28 March 2012 13:22:28 UTC