[whatwg] 2D canvas feature proposal: text decoration
Rik Cabanier
cabanier at gmail.com
Thu Apr 18 13:44:28 PDT 2013
On Thu, Apr 18, 2013 at 12:58 PM, Justin Novosad <junov at 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.
More information about the whatwg
mailing list