You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Roger Critchlow <re...@elf.org> on 2006/05/17 19:06:59 UTC

CSS puzzle in 1.6

Hello all --

I have a rectangle that usually gets its fill color by class from a
<style></style> sheet, but I sometimes temporarily override the color
with an inline style="fill: color" attribute.

When I switch to the inline style, the color changes immediately.
When I switch back, by removing the style attribute, the color changes
back only with great reluctance.

I can actually change the size of the rectangle through the DOM
without the correct color being painted.  On the other hand, if I
switch back to the inline style again, the correct color is painted
transiently before the inline style takes effect.

Is this a known bug in batik-1.6?  Is there a known fix?

-- rec --

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: CSS puzzle in 1.6

Posted by Roger Critchlow <re...@elf.org>.
I found a satisfactory work around:  transiently change the "class"
attribute of the node and its style will be recomputed and displayed
correctly.

-- rec --

On 5/17/06, Roger Critchlow <re...@elf.org> wrote:
> Hello all --
>
> I have a rectangle that usually gets its fill color by class from a
> <style></style> sheet, but I sometimes temporarily override the color
> with an inline style="fill: color" attribute.
>
> When I switch to the inline style, the color changes immediately.
> When I switch back, by removing the style attribute, the color changes
> back only with great reluctance.
>
> I can actually change the size of the rectangle through the DOM
> without the correct color being painted.  On the other hand, if I
> switch back to the inline style again, the correct color is painted
> transiently before the inline style takes effect.
>
> Is this a known bug in batik-1.6?  Is there a known fix?
>
> -- rec --
>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: CSS puzzle in 1.6

Posted by th...@kodak.com.
Hi Roger,

rogercritchlow@gmail.com wrote on 05/17/2006 01:06:59 PM:

> I have a rectangle that usually gets its fill color by class from a
> <style></style> sheet, but I sometimes temporarily override the color
> with an inline style="fill: color" attribute.
> 
> When I switch to the inline style, the color changes immediately.
> When I switch back, by removing the style attribute, the color changes
> back only with great reluctance.

    This seems like a bug.  For some reason when the inline style
is removed it seems like we aren't recascading properly.  Can
you give a small example?  Preferably as an attachment in Bugzilla.

> I can actually change the size of the rectangle through the DOM
> without the correct color being painted.  On the other hand, if I
> switch back to the inline style again, the correct color is painted
> transiently before the inline style takes effect.
> 
> Is this a known bug in batik-1.6?  Is there a known fix?

    It's not a known bug...


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org