[whatwg] 2D canvas feature proposal: text decoration

Justin Novosad junov at google.com
Thu Apr 18 14:00:21 PDT 2013

On Thu, Apr 18, 2013 at 4:44 PM, Rik Cabanier <cabanier at gmail.com> wrote:

> This seems very reasonable.
> I wonder if we should use a DOMString or go to something more JavaScript-y
> like a JSON object or an interface with enums.
I agree that strings are not the best type for this, but you're talking
about a rather fundamental break in consistency with respect to the rest of
the spec.
Other similar existing CanvasDrawingStyles properties (e.g. textAlign) use
strings, and the text-decoration CSS property is also a string.

More information about the whatwg mailing list