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

[css3-images] <side-or-corner> defined twice, differently

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 11 Sep 2011 14:14:09 -0700
To: www-style@w3.org
Message-ID: <20110911211409.GA10180@pickering.dbaron.org>
The <side-or-corner> production is defined in two different places
in css3-images.  In
http://dev.w3.org/csswg/css3-images/#linear-gradients it is defined
as:
  # <side-or-corner> = [left | right] || [top | bottom]
whereas in http://dev.w3.org/csswg/css3-images/#repeating-gradients
it is defined as:
  # <side-or-corner> = 
  #   [ [left | right] || [top | bottom] ] |
  #   [ [start | end] || [before |after] ]

It seems to me that it should be defined in only one place, and it
should have only one definition.

(I'm guessing that the addition of start/end/before/after was
intended to apply to both repeating and non-repeating gradients, and
the second definition is the correct one.)

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla Corporation               http://www.mozilla.com/   𝄂
Received on Sunday, 11 September 2011 21:14:32 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:04 UTC