W3C home > Mailing lists > Public > www-svg@w3.org > November 2002

SVG spec--lines

From: Andy Skinner <askinner@avs.com>
Date: Fri, 15 Nov 2002 17:01:14 -0500
To: <www-svg@w3.org>

Hi.  I'm confused by a couple of parts of the SVG spec.

The 'line' element spec says:
"Because 'line' elements are single lines and thus are geometrically
one-dimensional, they have no interior; thus, 'line' elements are never
filled (see the 'fill' property)."

But the 'fill' property says:
"The zero-width geometric outline of a shape is included in the area to be

This would give a definition to 'fill' for a line.

Are these statements contradictory?  If so, which is correct?

There does seem to be a fill in the Adobe viewer, because there is a line
down the middle of my line when I make my line dashed and wide.

<svg width="592" height="473" viewBox="0 0 592 473">
<line stroke="#ff0000" x1="50" y1="200" x2="500" y2="200"
stroke-dasharray="20 10" />

That line goes away when I set 'fill' to "none".

Thanks for comments,
Received on Friday, 15 November 2002 17:00:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:54 UTC