[whatwg] 2D canvas feature proposal: text decoration
Boris Zbarsky
bzbarsky at MIT.EDU
Fri Apr 19 09:18:33 PDT 2013
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
More information about the whatwg
mailing list