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

RE: Typo in stroke-type style property

From: Lofton Henderson <lofton@rockynet.com>
Date: Wed, 07 Jan 2009 17:17:01 -0700
Message-Id: <>
To: "WebCGM WG" <public-webcgm-wg@w3.org>
One preliminary comment/observation:

There is actually a direct contradiction about stroke-type.  The table [1] 
says stroke-type can be a name or a negative integer.  The text says valid 
values are the defined integers (and it omits negative integers.)


There is some history to this issue, and I'll try to dig it out.  I 
remember us discussing the name-versus-integer issue.  And I remember 
extensively re-editing all of the new SP table/text stuff to reflect our 

(**I think** that our intention was to go towards the simple integer-only 
solution, for those new SPs for which integers make sense.  If that's true, 
any contrary implication is due to my bad editing, and the stroke-type is 
clearly an editing goof.  I recall inserting the "corresponding to..." 
wording, and recall the intent as simply explaining the valid-value list 
[integers] in more user-friendly terms, so that one did not have to pick up 
a copy of CGM:1999 to understand the integer valid values.)

More later.


At 10:59 AM 1/7/2009 -0500, Bezaire, Benoit wrote:
>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).
>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".
Received on Thursday, 8 January 2009 00:18:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:23:41 UTC