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

On Thu, Apr 18, 2013 at 12:58 PM, Justin Novosad <junov@google.com> wrote:

> This is a really simple proposal to add support for text decorations in 2D
> canvas contexts.
>
> IDL to add to interface CanvasDrawingStyles:
>
> attribute DOMString textDecoration;
>
> It would support all the same modes as the 'text-decoration' CSS property
> (except inherit), and default would be 'none'.
>
> What say y'all?
>

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.

Received on Friday, 19 April 2013 01:03:15 UTC