W3C home > Mailing lists > Public > public-webcgm-wg@w3.org > January 2009

RE: Typo in stroke-type style property

From: Bezaire, Benoit <bbezaire@ptc.com>
Date: Wed, 7 Jan 2009 10:59:41 -0500
Message-ID: <D4B91172BD39D64E8799BE7ECB329A5D8906D3@HQ-MAIL3.ptcnet.ptc.com>
To: "WebCGM WG" <public-webcgm-wg@w3.org>
I'm reading the on the new style properties, and I see some
inconsistencies.
 
It's unclear with the current spec which style properties are set by a
name or integer value. At the moment it seems like stroke-type can be
set using "solid" or "1". But other style properties like interior-style
and hatch-index only seem to be settable using it's integer value. I
think some clarification and consistency is needed.
 
While it's still unclear if PTC will implement getStyleProperty(), I
wonder if the implementation has to return the exact same string that
was used to set the attribute. 
 
Example for stroke-type: setStyleProperty("stroke-type", "solid"),
getStyleProperty("stroke-type") returns 1.
Example for stroke-weight: setStyleProperty("stroke-weight", "200%"),
getStyleProperty("stroke-weight") returns 0.5 (assuming original was
0.25).
 
Thoughts?
Benoit.

________________________________

From: Bezaire, Benoit 
Sent: Wednesday, January 07, 2009 10:26 AM
To: WebCGM WG
Subject: Typo in stroke-type style property


Current wording says: "[...] Valid values are: integers 1-6 (which
correspond to solid, dash, dot, dash-dot, dash-dot-dot)", the "1-6"
should be replaced by "1-5".
 
Benoit.
 
Received on Wednesday, 7 January 2009 16:00:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 January 2009 16:00:17 GMT