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>
Message-ID: <NEBBIANCMHJEBDBNDCOJMELPECAA.askinner@avs.com>

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
painted."

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">
<g>
<line stroke="#ff0000" x1="50" y1="200" x2="500" y2="200"
stroke-dasharray="20 10" />
</g>
</svg>

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

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

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:23 GMT