DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34115>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34115





------- Additional Comments From [EMAIL PROTECTED]  2005-03-22 15:44 -------
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration states 
that length is "The number of properties that have been explicitly set in this 
declaration block" and in style="fill:x;fill:y" only one property is explicitly 
set, no?

The section also refers to the decription of CSS2Properties for shorthand 
properties which in turn defines that getPropertyValue provides equivalent 
results, so if you have e.g. style="font: ...;" (and you don't use system font 
values) you would have a .length > 1 as font always explicitly sets multiple 
properties.

So it seems clear that CSSStyleDeclaration provides an abstract view of the 
declaration block with shorthand properties resolved and excluding all 
overridden declarations. If you modify the CSSStyleDeclaration you would do it 
in terms of this abstract view, so for my example test.style.removeProperty
("fill") would yield in test.style.length == 0, and test.style.setProperty
("fill", "green", "") would yield in test.style.length == 1.

I am not sure whether and if how this affects getAttributeNS(null, "style") or 
test.style.cssText...

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to