Thank you, Thomas.
Batik's strict compliance to the Specs is really keeping me on my toes! I'm very glad that this viewer exists, in part because I'm such it raises the compliance bar for other viewers, and forces lazy authors like myself to use good coding practices.
This worked admirably in both Squiggle and ASV3/6p; Corel balked at the style accessor, so I'm not sure there.
I did a simple experiment, setting the parent group style to "fill:red !important", but it did not override the style of the fill in the child circle... how does the priority work in such an instance?
To be honest I am not a CSS guru. Taking a quick look at CSS2 this seems to mostly be a stylesheet thing. So if you had a stylesheet that said text { fill:green }
But your content had : <text style="fill:blue">...
Your text would be blue, but if the style sheet said:
text { fill:green ! important }
The text should be green. I don't think this figures into inheritance. See the attached file.
I'm curious to know if anyone has compiled a list of "gotchas" between ASV and Batik?
Not that I am aware of but contributions are welcome (they could be FAQ entries or a standalone document).
Thanks- -Doug
Thomas DeWeese" wrote:
Hi Doug,
Take a look at the CSS DOM specification, in particular:
http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-CSSStyleDeclaration-setProperty
setProperty takes three arguments not two. The third is priority, this is typically "important" (override everything) or "" (normal
priority -
which is used most commonly).
Doug Schepers wrote:
Hi-
I've been coding with an eye mostly toward ASV, so I'm fairly new to
much of
Batik (though I've used things like the font convertor for a while).
Forgive
me if I ask dumb or ASV-centric questions. I'm testing some of my code
on
Squiggle/Batik1.5, and I've runn into a few errors that I may have taken
for
granted in ASV.
I'm wondering why I can't use: myElement.style.setProperty('fill', 'blue')
I can set style as an attribute, but not as a style property (see sample [1]); it complains it can't find the setProperty method (see output
[2]).
Is this the wrong way to do it? Or is this method simply not supported
in
Batik?
Thanks- -Doug
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<<inline: import.svg>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]