Re: [whatwg] 2D canvas feature proposal: text decoration

On 4/19/13 9:51 AM, Justin Novosad wrote:
> That sounds OK. However, I would find it unfortunate to re-specify the
> behavior of the property in the canvas 2d context spec, when we could just
> spec it like 'font' by saying that it is interpreted the same way as the
> corresponding CSS property. I think it is a good idea to keep in sync with
> CSS whenever we can.

For something like textDecoration, the question is the desired behavior. 
  If "uNdeRlIne" should be a valid value, as it is in CSS, you don't 
want an IDL enum, because enumerating all the options would suck.

-Boris

Received on Friday, 19 April 2013 16:19:01 UTC