W3C home > Mailing lists > Public > www-svg@w3.org > August 2000

Expected Synchronization behavior?

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Fri, 11 Aug 2000 10:12:13 -0700
Message-id: <fc.0085846d0000ddc30085846d0000ddc3.ddc8@savagesoftware.com>
To: www-svg@w3.org
What is the expected synchronization behavior between presentation
attributes and their corresponding CSSValues when the attribute is set
with an invalid value?  For example, assume I have a circle element named
'circleElement' and I set its 'opacity' attribute with an invalid value.

circleElement.setAttribute("opacity", "1.0");
CSSPrimitiveValue opacity =
circleElement.setAttribute("opacity", "bad value"); //does 'opacity' get
detacted from the syncronization process here ??
opacity.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 0.5);
circleElement.getAttribute("opacity"); //does this return "bad value" or
"0.5" ?

Thanks for the clarification.
Blaine Brodie
Received on Friday, 11 August 2000 13:14:42 UTC

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