Re: [svg-developers] Re: Stroke width inside the shape -- Bug in Opera and IE??

2008-12-18 Thread thomas . deweese

Hi all,

The problem is that the document as described has infinite
recursion (the clip path is clipped by it's self).

The following forumlation fixes that:

http://www.w3.org/2000/svg";
 xmlns:xlink="http://www.w3.org/1999/xlink";>
  

  

  
  





-svg-develop...@yahoogroups.com wrote: -

>To: svg-develop...@yahoogroups.com
>From: "G. Wade Johnson" 
>Sent by: svg-develop...@yahoogroups.com
>Date: 12/18/2008 05:14AM
>Subject: Re: [svg-developers] Re: Stroke width inside the shape --
>Bug in Opera and IE??
>
>
>
>
>
>
>
>
>
>
>
>
>
>I can add tests of Squiggle made with Batik. Versions 1.6, 1.7, and a
>
>
>prerelease 1.8 all generate an exception. The message is 'null' and
>
>
>exception appears to start at
>
>
>org.apache.batik.
>swing.svg.
>GVTTreeBuilder.
>run
>
>
>
>
>and scrolls completely out of the screen buffer.
>
>
>
>
>G. Wade
>
>
>
>
>On Wed, 17 Dec 2008 21:05:07 -0500
>
>
>"ddailey" <
>ddai...@zoominterne
>t.net
>> wrote:
>
>
>
>
>> Apologies if this message appears here more than once -- I have had
>
>
>> some trouble with some of my postings to this group recently
>
>
>> 
>-
>
>
>>
>
>
>> I saw Frank's suggestion (below) and thought "yes of course!" How
>
>
>> straightforward.
>
>
>>
>
>
>> So I thought I'd check it out to make sure it worked the way we'd
>
>
>> expect. Hmmm Bad news!
>
>
>>
>
>
>> Look at
>http://srufaculty.
>sru.edu/david.
>dailey/halfstrok
>e0.svg
>
>
>> (source code included below).
>
>
>>
>
>
>> Safari and Chrome seem to (sort of) do it correctly - though they
>
>
>> differ rather clearly in how they handle the anti-aliasing around
>the
>
>
>> clipping region.
>
>
>>
>
>
>> Firefox (3.0.4) displays nothing.
>
>
>>
>
>
>> Opera 9.61 closes itself immediately after opening the file.
>
>
>>
>
>
>> IE/ASV 3.03 at first displays nothing, and then closes itself if
>the
>
>
>> reload button is pushed.
>
>
>>
>
>
>> Pretty amazing behavior, I would posit. I couldn't believe it this
>
>
>> weekend when I tried it at home serving it locally, so I thought
>I'd
>
>
>> try it viewing from a different machine at the office and coming
>from
>
>
>> a server, but, sigh, same results.
>
>
>>
>
>
>> David
>
>
>>
>
>
>> 
>-
>---halfstroke0.
>svg--
>-
>-
>
>
>> http://www.w3.
>org/2000/
>svg
>" width="100%"
>
>
>> xmlns:xlink=
>"
>http://www.w3.
>org/1999/
>xlink
>" >
>
>
>> 
>
>
>>  >
>
>
>>   #poly1"/>
>
>
>>  
>
>
>> 
>
>
>> 
>
>> clip-path="url(
>#cp_poly1)
>" stroke="blue" stroke-width=
>"15px"/>
>
>
>> 
>
>
>> 
>-
>---halfstroke0.
>svg--
>-
>-
>
>
>>
>
>
>>
>
>
>>
>
>
>>   - Original Message -
>
>
>>   From: Frank Bruder
>
>
>>   To:
>svg-developers@
>yahoogroups.
>com
>
>
>
>>   Sent: Friday, December 12, 2008 10:32 PM
>
>
>>   Subject: [svg-developers] Re: Stroke width inside the shape
>
>
>>
>
>
>>
>
>
>>   You could do this with a clip path.
>
>
>>   Sample code snippet:
>
>
>>
>
>
>>   
>
>
>>   >
>
>
>>   #poly1"/>
>
>
>>   
>
>
>>   
>
>
>>   #cp_poly1)
>"
>
>
>>   stroke="blue" stroke-width=
>"5px"/>
>
>
>>
>
>
>>   The stroke is drawn centered around the outline, but the outer
>part
>
>
>> is clipped by using the same shape as a clip path.
>
>
>>
>
>
>>   --- In
>svg-developers@
>yahoogroups.
>com
>, "jgfa92004"
>
>
>> ...> wrote:
>
>
>>   >
>
>
>>   > Hi,
>
>
>>   > Is there a way to set the stroke width of a polyline inside the
>
>
>>   > shape instead of half inside and half outside ?
>
>
>>   > Thanks.
>
>
>>   > Julie
>
>
>>   >
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

[Non-text portions of this message have been removed]




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Stroke width inside the shape -- Bug in Opera and IE??

2008-12-18 Thread G. Wade Johnson
I can add tests of Squiggle made with Batik. Versions 1.6, 1.7, and a
prerelease 1.8 all generate an exception. The message is 'null' and
exception appears to start at
org.apache.batik.swing.svg.GVTTreeBuilder.run

and scrolls completely out of the screen buffer.

G. Wade

On Wed, 17 Dec 2008 21:05:07 -0500
"ddailey"  wrote:

> Apologies if this message appears here more than once -- I have had
> some trouble with some of my postings to this group recently
> -
> 
> I saw Frank's suggestion (below) and thought "yes of course!" How
> straightforward.
> 
> So I thought I'd check it out to make sure it worked the way we'd
> expect. Hmmm Bad news!
> 
> Look at http://srufaculty.sru.edu/david.dailey/halfstroke0.svg
> (source code included below).
> 
> Safari and Chrome seem to (sort of) do it correctly - though they
> differ rather clearly in how they handle the anti-aliasing around the
> clipping region. 
> 
> Firefox (3.0.4) displays nothing.
> 
> Opera 9.61 closes itself immediately after opening the file.
> 
> IE/ASV 3.03 at first displays nothing, and then closes itself if the
> reload button is pushed.
> 
> Pretty amazing behavior, I would posit. I couldn't believe it this
> weekend when I tried it at home serving it locally, so I thought I'd
> try it viewing from a different machine at the office and coming from
> a server, but, sigh, same results.
> 
> David
> 
> halfstroke0.svg
> http://www.w3.org/2000/svg"; width="100%"
> xmlns:xlink="http://www.w3.org/1999/xlink"; >
> 
>  
>   
>  
> 
>  clip-path="url(#cp_poly1)" stroke="blue" stroke-width="15px"/>
> 
> halfstroke0.svg
> 
>  
> 
>   - Original Message - 
>   From: Frank Bruder 
>   To: svg-developers@yahoogroups.com 
>   Sent: Friday, December 12, 2008 10:32 PM
>   Subject: [svg-developers] Re: Stroke width inside the shape
> 
> 
>   You could do this with a clip path.
>   Sample code snippet:
> 
>   
>   
>   
>   
>   
>  stroke="blue" stroke-width="5px"/>
> 
>   The stroke is drawn centered around the outline, but the outer part
> is clipped by using the same shape as a clip path.
> 
>   --- In svg-developers@yahoogroups.com, "jgfa92004"
>  wrote:
>   >
>   > Hi,
>   > Is there a way to set the stroke width of a polyline inside the
>   > shape instead of half inside and half outside ?
>   > Thanks.
>   > Julie
>   >



-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Stroke width inside the shape -- Bug in Opera and IE??

2008-12-17 Thread ddailey
Apologies if this message appears here more than once -- I have had some 
trouble with some of my postings to this group recently
-

I saw Frank's suggestion (below) and thought "yes of course!" How
straightforward.

So I thought I'd check it out to make sure it worked the way we'd
expect. Hmmm Bad news!

Look at http://srufaculty.sru.edu/david.dailey/halfstroke0.svg   (source
code included below).

Safari and Chrome seem to (sort of) do it correctly - though they differ
rather clearly in how they handle the anti-aliasing around the clipping
region. 

Firefox (3.0.4) displays nothing.

Opera 9.61 closes itself immediately after opening the file.

IE/ASV 3.03 at first displays nothing, and then closes itself if the
reload button is pushed.

Pretty amazing behavior, I would posit. I couldn't believe it this
weekend when I tried it at home serving it locally, so I thought I'd try
it viewing from a different machine at the office and coming from a
server, but, sigh, same results.

David

halfstroke0.svg
http://www.w3.org/2000/svg"; width="100%"
xmlns:xlink="http://www.w3.org/1999/xlink"; >

 
  
 



halfstroke0.svg

 

  - Original Message - 
  From: Frank Bruder 
  To: svg-developers@yahoogroups.com 
  Sent: Friday, December 12, 2008 10:32 PM
  Subject: [svg-developers] Re: Stroke width inside the shape


  You could do this with a clip path.
  Sample code snippet:

  
  
  
  
  
  

  The stroke is drawn centered around the outline, but the outer part is
  clipped by using the same shape as a clip path.

  --- In svg-developers@yahoogroups.com, "jgfa92004" 
  wrote:
  >
  > Hi,
  > Is there a way to set the stroke width of a polyline inside the shape 
  > instead of half inside and half outside ?
  > Thanks.
  > Julie
  >



   

[Non-text portions of this message have been removed]




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:svg-developers-dig...@yahoogroups.com 
mailto:svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/