- From: Blaine Brodie <bbrodie@savagesoftware.com>
- Date: Fri, 11 Aug 2000 10:12:13 -0700
- 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 = (CSSPrimitiveValue)circleElement.getPresentationAttribute("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