Out of screen coordinates XHTML/SVG rendering/clipping?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Out of screen coordinates XHTML/SVG rendering/clipping?

STanda-2
Hi!

The XHTML/SVG combination document below demonstrates a strange
behaviour of Firefox 1.5 which does not render the two lines outside my
current WinXP resolution coordinates.
The 'Test???' text is intentionally placed outside my screen so that
the line problem is obvious.

Perhaps this should be submitted as a bug?

Best Regards

STanda



<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg">
<body>
        <div style="position: absolute; top: 0px; left: 0px; z-index: 0;">
                <svg:svg version="1.1">
                        <svg:line x1="0" y1="0" x2="2500" y2="1200" stroke="black"/>
                        <svg:line x1="2500" y1="0" x2="0" y2="1200" stroke="black"/>
                </svg:svg>
        </div>
        <div style="position: absolute; top: 1200px; left: 2500px; z-index:
0;">
                Test???
        </div>
</body>
</html>

_______________________________________________
Mozilla-svg mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-svg
Reply | Threaded
Open this post in threaded view
|

Re: Out of screen coordinates XHTML/SVG rendering/clipping?

user-41
STanda a écrit :

> Hi!
>
> The XHTML/SVG combination document below demonstrates a strange
> behaviour of Firefox 1.5 which does not render the two lines outside my
> current WinXP resolution coordinates.
> The 'Test???' text is intentionally placed outside my screen so that
> the line problem is obvious.
>
> Perhaps this should be submitted as a bug?
>
> Best Regards
>
> STanda
>
>
>
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:svg="http://www.w3.org/2000/svg">
> <body>
> <div style="position: absolute; top: 0px; left: 0px; z-index: 0;">
> <svg:svg version="1.1">
> <svg:line x1="0" y1="0" x2="2500" y2="1200" stroke="black"/>
> <svg:line x1="2500" y1="0" x2="0" y2="1200" stroke="black"/>
> </svg:svg>
> </div>
> <div style="position: absolute; top: 1200px; left: 2500px; z-index:
> 0;">
> Test???
> </div>
> </body>
> </html>
>
The cause must be that <svg> has no width/height x)

Cya
_______________________________________________
Mozilla-svg mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-svg
Reply | Threaded
Open this post in threaded view
|

Re: Out of screen coordinates XHTML/SVG rendering/clipping?

STanda-2
Hi Cya!

The width and height attributes indeed solved the problem. However my
question would be why are those required? Is that a specification
requirement?

Thanks!

STanda

_______________________________________________
Mozilla-svg mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-svg
Reply | Threaded
Open this post in threaded view
|

Re: Out of screen coordinates XHTML/SVG rendering/clipping?

Gus Richter
STanda wrote:
> Hi Cya!
>
> The width and height attributes indeed solved the problem. However my
> question would be why are those required? Is that a specification
> requirement?

I believe that width applied to the div is not the real solution.
It appears to be ok in Firefox, but in Opera it does not.
Applying  viewBox="0 0 2500 1200"  to svg instead, results in Fx and
Opera rendering alike.

--
Gus
_______________________________________________
Mozilla-svg mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-svg
Reply | Threaded
Open this post in threaded view
|

Re: Out of screen coordinates XHTML/SVG rendering/clipping?

STanda-2
Hi Gus!

Well, when I use the width/height on the <svg/> then it is rendered ok
in both Fx and Opera. Problem is that in opera it seems not to
understand the rest of the document as HTML. The link and image in the
second <div/> is not rendered correctly. Is it a bug of Opera? In Fx it
is ok.

STanda


<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg">
        <body>
                <div style="position: absolute; top: 0px; left: 0px; z-index: 0;">
                        <svg:svg version="1.1" width="2600px" height="1200px">
                                <svg:line x1="0" y1="0" x2="2500" y2="1200" stroke="black"/>
                                <svg:line x1="2500" y1="0" x2="0" y2="1200" stroke="black"/>
                        </svg:svg>
                </div>
                <div style="position: absolute; top: 1200px; left: 2000px; z-index:
0;">
                        Test <a href="http://www.opera.com"><img
src="http://www.opera.com/img/operalogo.gif"/> Link!!!</a>
                </div>
        </body>
</html>

_______________________________________________
Mozilla-svg mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-svg
Reply | Threaded
Open this post in threaded view
|

Re: Out of screen coordinates XHTML/SVG rendering/clipping?

Gus Richter
STanda wrote:
> Hi Gus!
>
> Well, when I use the width/height on the <svg/> then it is rendered ok
> in both Fx and Opera. Problem is that in opera it seems not to
> understand the rest of the document as HTML. The link and image in the
> second <div/> is not rendered correctly. Is it a bug of Opera? In Fx it
> is ok.

Obviously I have to study up on, and test out, viewBox since what I
suggested does not render the proper size, although using the same
dimensions.

--
Gus
_______________________________________________
Mozilla-svg mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-svg