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

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

From: Bert Bos <bert@w3.org>
Date: Mon, 12 Dec 2011 15:43:26 +0100
To: W3C style mailing list <www-style@w3.org>
Message-Id: <201112121543.26670.bert@w3.org>
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



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Monday, 12 December 2011 14:43:50 GMT

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