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

RE: visible attribute

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Wed, 8 Mar 2000 10:24:48 -0700
Message-ID: <00E567D938B9D311ACEC00A0C9B468730C761C@THOR>
To: "'www-svg@w3.org'" <www-svg@w3.org>
Chris Lilley [mailto:chris@w3.org] wrote:

>Its not clear what you mean by "display fragment" but I assume that you
>mean to alter the value of the disply property to a value of "none" which
>is correct.

By display fragment, I meant a substring of the style that contained display:xxxx.
Sorry, I'm a newbie with CSS terminology.

>Since there already is a property called "visible", its not clear how what
>you are asking fro is significantly different (or less error prone) than
>the present situation.

I didn't dig into the DOM description sufficiently and was thinking
that you would have to parse the style attribute and replace or append
the "display:xxx" fragment by substring'ing and appending in Javascript.  
However, it appears that you could do something like:

group.style.setProperty("display","none","important");

which would be satisfactory.  Thanks for your clarification on the difference between display and visible.
Received on Wednesday, 8 March 2000 12:27:30 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:18 GMT