W3C home > Mailing lists > Public > www-style@w3.org > December 2011

Re: [css3-text] Forbidding color/style after 'none' or 'remove-all'

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 12 Dec 2011 11:26:26 -0800
Message-ID: <4EE65562.8040505@inkedblade.net>
To: www-style@w3.org
On 12/12/2011 06:43 AM, Bert Bos wrote:
> The syntax for 'text-decoration' currently allows:
>
>      text-decoration: none yellow wavy
>
> It could probably forbid the useless color and style with a syntax that
> is only slightly longer:
>
>      text-decoration: [<decoration-line>  ||
>        <text-decoration-color>  ||<text-decoration-style>  ||
>        blink ] | none | remove-all
>
> with 'text-decoration-line' defined as
>
>      text-decoration-line: none | remove-all |<decoration-line>
>
> and
>
>      <decoration-line>  = underline | no-underline |
>        replace-underline ] || [ overline | no-overline |
>        replace-overline ] || [ line-through | no-line-through |
>        replace-line-through

We don't make this restriction for 'border', so I don't see a good
reason to do this for 'text-decoration'. It's a toss-up whether it's
a good idea, and for that I'd rather be consistent with existing
shorthands.

~fantasai
Received on Monday, 12 December 2011 19:29:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:47 GMT