- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Mon, 12 Dec 2011 11:26:26 -0800
- 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 UTC