Re: [svg-developers] What am I overlooking?

2013-01-10 Thread Erik Dahlstrom
. Or you could add some CSS: html, body { height: 100% } My recommendation would be to define the coordinate system with viewBox. Cheers -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed

Re: [svg-developers] Re: Loading SVG images dynamically and then accessing the dom

2012-11-19 Thread Erik Dahlstrom
n all browsers see [2]. [1] http://www.w3.org/TR/XMLHttpRequest/#the-responsexml-attribute [2] http://stackoverflow.com/a/7986519/109374 -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ---

Re: [svg-developers] XML:ID And Ethnicity - Multiple Attributes

2012-10-23 Thread Erik Dahlstrom
IK- all the other browsers don't treat xml:id as an id attribute. I think xml:id is a historical mistake, so I'd strongly recommend you to avoid using that. Also see e.g https://bugs.webkit.org/show_bug.cgi?id=16505. -- Erik Dahlstrom, Core Technology Developer, Opera Software

Re: [svg-developers] Re: Standard Hover Effect - With Context

2012-10-22 Thread Erik Dahlstrom
t; xml:space="preserve"> > > > > d="M50.06,238.925v-55.168H7.2V73.424h42.86V18.259l103.029,110.33L50.06,238.925z"/> > > > > > > onmouseover="evt.target.setAttribute('fill', '#3DFF3D');" > onmouseout=&qu

Re: [svg-developers] Standard Hover Effect

2012-10-18 Thread Erik Dahlstrom
odify the style on the element itself and use e.g fill="currentColor" where necessary in the template. If you have a need to change the fill per instance then you should just clone the tree manually instead, and not use . [1] http://www.w3.org/TR/SVG11/struct.html#__svg__SVGEl

Re: [svg-developers] Re: SVG in SVG - external CSS styling problem - Roberts response

2012-08-28 Thread Erik Dahlstrom
by these pages.. I know that iframes >> aren't >> > > recomended, but they're still enabled.. >> > > I just don't understand , why I can't have simillar feature in svg, >> OR CAN >> > > I?? (It haven't to be tag,

Re: [svg-developers] Re: Anaglyph Pain - feColorMatrix and [feBlend or feComposite]

2012-07-11 Thread Erik Dahlstrom
awing.svg" to explain > why it doesn't work with Opera? Probably just a case of missing images, I replaced e.g "C:\Users\Peteypak\My work\StereoViewerCGI\IMG_0490.JPG" in that svg to something that's actually available, and then it worked just fine. Cheers -- Er

Re: [svg-developers] Anaglyph Pain - feColorMatrix and [feBlend or feComposite]

2012-07-04 Thread Erik Dahlstrom
o light, which causes it to be a little bit less vivid than it should be. All the other browsers render it the same though. Hope this helps -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed --

Re: [svg-developers] Re: Negative dx and gradients with color names in four browsers

2012-06-27 Thread Erik Dahlstrom
s.html. -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -or- visit http://groups.yahoo.com

Re: [svg-developers] Re: Negative dx and gradients with color names in four browsers

2012-06-27 Thread Erik Dahlstrom
On Tue, 26 Jun 2012 16:06:36 +0200, Arjen wrote: > > > > --- In svg-developers@yahoogroups.com, "Erik Dahlstrom" wrote: >> > 1. Is a negative dx allowed? Firefox 13 / Opera 12 ignore it, Chrome >> 19 and IE 9 apply it. > > the prob

Re: [svg-developers] Negative dx and gradients with color names in four browsers

2012-06-26 Thread Erik Dahlstrom
ed just fine after adding that. Hope this helps -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a message to: svg-developers-unsu

Re: [svg-developers] Re: Zoom In Out wih SVG

2012-06-08 Thread Erik Dahlstrom
gt; mean by touch events?). > > --- In svg-developers@yahoogroups.com, "Erik Dahlstrom" wrote: > >> The SVGPan library has some bugs that needs to be patched in to make it >> actually work well, see e.g >> http://code.google.com/p/svgpan/issues/detail?id=6 for how

Re: [svg-developers] Re: Zoom In Out wih SVG

2012-06-07 Thread Erik Dahlstrom
patched in to make it actually work well, see e.g http://code.google.com/p/svgpan/issues/detail?id=6 for how badly it's broken. Also most people probably expect to be able to zoom and pan without having a mouse (or a scrollwheel mouse even). There's no support for touch events in th

Re: Fw: [svg-developers] Reflection in a puddle

2012-05-16 Thread Erik Dahlstrom
if Burhan See e.g http://www.colorzilla.com/gradient-editor/ for something that will work better crossbrowser. Or better yet, just use svg gradients instead, and avoid all the css vendor prefix nonsense... -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working G

Re: [svg-developers] diagonal lines in pattern elements

2012-04-05 Thread Erik Dahlstrom
ends up where it's supposed to. -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com -o

Re: Fw: Re: [svg-developers] Re: Opera and Chrome behavior

2012-04-03 Thread Erik Dahlstrom
! I'd suggest filing a bugreport on webkit instead, http://bugs.webkit.org. -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a messag

Re: [svg-developers] Re: Borromean rings and Firefox SMIL -- also funky Opera and Chrome behavior

2012-04-02 Thread Erik Dahlstrom
to > respect . > > Thomas W. Cool example :) What you're seeing there is bug CORE-45190 (Opera), a fix will hopefully make it into public snapshots soon. Cheers -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group

Re: [svg-developers] Re: ie9 and foreign namespace attributes

2012-03-14 Thread Erik Dahlstrom
dling of the source XML data with jQuery instead - which should >> at least allow me to proceed with an inline approach, even allowing for >> the inconsistencies in implementation. >> >> Thanks to every one for the help, much appreciated. >> >> Alan >> >> -

Re: [svg-developers] Re: ie9 and foreign namespace attributes

2012-03-14 Thread Erik Dahlstrom
ns, even in foreign elements." See the full text > with an example here: > > http://dev.w3.org/html5/spec/Overview.html#foreign-elements > > Ed The replacement in HTML5 is data-* attributes, see http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-dat

Re: [svg-developers] Re: bad rendering and positioning for pattern in opera, chrome ...

2012-01-24 Thread Erik Dahlstrom
0,100,100", tiling disappear but it is rendered in Opera and > chrome ... I don't think Firefox allows commas in viewBox attributes, try separating the values with space instead. If I make that change it still seems like a bug in Firefox that it doesn't respect the patte

Re: [svg-developers] bad rendering and positioning for pattern in opera, chrome ...

2012-01-23 Thread Erik Dahlstrom
x" and change the pattern width and height to be "1" instead of "100", that makes the pattern tile be the same size as the boundingbox of the element that uses the pattern. In this case you may also want to add a viewBox attribute on the pattern element to specify the

Re: [svg-developers] NodeList.prototype in opera

2012-01-05 Thread Erik Dahlstrom
t. > Thanks in advance for your help ! > Cheers That is a known issue. Currently tracked as bug CORE-26489. The selectors API methods in the spec used to return "StaticNodeList" objects. This was changed later on to be "NodeList". That's part of the reason why.

Re: [svg-developers] browser stretching SVG IMG

2011-11-21 Thread Erik Dahlstrom
SVG as all browsers > tested support IFRAME, OBJECT, and EMBED just fine. > > This page demonstrates the issue: > http://homepage.mac.com/nellisks/verizon/svg/include_svg.html FWIW it looks ok in Chrome 17.0.945.0, so it might have been fixed. Did you test in IE9 and up too? -- Erik

Re: [svg-developers] SMIL -- still not yet!

2011-10-19 Thread Erik Dahlstrom
On Tue, 18 Oct 2011 14:20:40 -0400, John Delacour wrote: > At 14:01 -0400 17/10/11, Erik Dahlstrom wrote: > > >> On Mon, 17 Oct 2011 03:52:58 -0400, John Delacour wrote: >> >>> ... >>> <http://www.w3.org/TR/SVG/images/animate/anim01.svg> >

Re: [svg-developers] SMIL -- still not yet!

2011-10-17 Thread Erik Dahlstrom
erkiness" you see is due to selecting different font-sizes, it's not a SMIL issue. You'd get a smoother animation if the same glyph outlines were used all the time. -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C

Re: [svg-developers] Re: Palette and dithering

2011-10-10 Thread Erik Dahlstrom
irefox at least, and probably IE10. You might want to use preserveAlpha="true", see http://xn--dahlstrm-t4a.net/svg/filters/emboss.svg. -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed --

Re: [svg-developers] Alpha gradient made with a filter?

2011-10-10 Thread Erik Dahlstrom
the filter chain, e.g (but note that last I checked that wasn't supported in Firefox, Opera supports it though). I think it might be ok to let feFlood accept gradient references in the future, e.g or maybe even http://www.w3.org/TR/SVG11/filters.html#FillPaint -- Erik Dahlstrom, Core Te

Re: [svg-developers] flickering SMIL

2011-09-20 Thread Erik Dahlstrom
imation effect since fill="remove" is the default. Cheers -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a message to: svg-devel

Re: [svg-developers] Listing line numbers

2011-09-07 Thread Erik Dahlstrom
end. Sorry for the > inconvenience and thanks a lot for your help. Uncommenting one of the starting tags as you did know naturally works too, it amounts to the same thing - balancing the tags. You can e.g use an xml validator to check that a given file has balanced tags. -- Erik Dahlstrom, Co

Re: [svg-developers] Listing line numbers

2011-09-06 Thread Erik Dahlstrom
at the end. I'm a bit surprised that it worked in Firefox. Cheers -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a message to: sv

Re: [svg-developers] finding the HTML whose SVG was clicked upon

2011-07-22 Thread Erik Dahlstrom
cript.html From an element elm inside the svg that was embedded by reference: var embedding_elm = elm.ownerDocument.defaultView.frameElement; Cheers -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: h

Re: [svg-developers] Operating on external SVG images.

2011-06-28 Thread Erik Dahlstrom
mages, but I have a few problems: > > 1) When I zoom out it shows these scroll bars around the image, any idea > how to get rid of those? How do you reference the svg images? How are you zooming? What browser(s) do you see the scrollbars in? -- Erik Dahlstrom, Core Technology Develop

Re: [svg-developers] Opera Versions - SVG Support

2011-06-12 Thread Erik Dahlstrom
nt to learn more about how to make content work in Opera Mini (there are some limitations even for HTML content): http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/ Cheers -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working

Re: [svg-developers] improve performance suggestions

2011-05-23 Thread Erik Dahlstrom
strm-t4a.net/svg/masking/video-masking.svg (try clicking and moving the mouse around) -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a messa

Re: [svg-developers] Re: CSS, SVG and Building Scalable Web Sites

2011-05-12 Thread Erik Dahlstrom
12 will once again be at the top of the list. I'm hoping that Opera Next (11.5x) [1] will pick up the fixes (so, hopefully sooner than Opera 12). Cheers /Erik [1] http://www.opera.com/browser/next/ -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Wo

Re: [svg-developers] Re: CSS, SVG and Building Scalable Web Sites

2011-05-12 Thread Erik Dahlstrom
... > > http://caniuse.com/#search=woff > > http://caniuse.com/#search=svg%20fonts Truetype fonts work pretty much everywhere too, with IE being harder on the embedding bits than everyone else, see e.g http://www.kltf.de/kltf_notes_ie9ttfembeddingbits.htm. -- Erik Dahlstrom,

Re: [svg-developers] Re: Problem viewing SVG (in HTML) on Safari

2011-04-18 Thread Erik Dahlstrom
lt. It should work just fine in the Opera Ragnarök builds[1] however (those that include the HTML5 parser with svg support). The old html parser only handles html elements, any svg elements will just be parsed as unknown html elements and won't render as svg. Cheers /Erik [1] http://la

Re: [svg-developers] Re: Creating and elements from script - browser implementations

2011-04-06 Thread Erik Dahlstrom
'll see why it's a better idea to specify "xlink:href" instead of "href" if you try serializing the node with XMLSerializer. -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.co

Re: [svg-developers] text selection don't work in use

2011-03-29 Thread Erik Dahlstrom
, then there's no way to select text in shadowtrees with DOM calls since there's no selectSubString method on the SVGElementInstance interface. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.op

Re: [svg-developers] Use element in HTML

2011-03-17 Thread Erik Dahlstrom
g svg { width: 300px; border: 1px solid black } (note that since you don't use a viewBox on the fragments you may get some content outside the viewport which will be clipped away). Cheers /Erik [1] http://labs.opera.com/news/2011/02/22/ -- Erik Dahlstrom, Core Technology Developer, Opera So

Re: [svg-developers] How to time some SVG+JavaScript?

2011-02-14 Thread Erik Dahlstrom
o conserve resources. An example of how that can be used: http://dev.opera.com/articles/view/presto-2-2-and-opera-10-a-first-look/#fps. Note that the example there changes the text in the svg once every 100ms so the lowest framerate that will be reported is going to be around 10 (100ms

Re: [svg-developers] Showing SVG dynamically in browser

2011-02-11 Thread Erik Dahlstrom
a[currNewsImgIdx]; > > } > which will take my clips from an array without any luck. The data and > type > values inside object tag will stay empty. Do you have two elements with the same 'id' in the document? Cheers /Erik -- Erik Dahlstrom, Core Technology Devel

Re: [svg-developers] Showing SVG dynamically in browser

2011-02-10 Thread Erik Dahlstrom
> Opera? Yes, declarative animation works in tags. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a message to: svg-de

Re: [svg-developers] Re: Need Help to rotate the svg element

2011-02-04 Thread Erik Dahlstrom
. >> Since the original poster wrote simply "i need help on SVG element >> Rotation...", that's all the help he gets for the moment. >> >> JD >> >> > > > [Non-text portions of this message have been removed] > > > > > > - > To unsubs

Re: [svg-developers] SVG Support in Opera 11

2011-01-13 Thread Erik Dahlstrom
what to expect when loading your comic. Frame 5 looks different in Firefox 4 for example (no animation). > I know I should do a test case and submit the bug but I've only just > noticed this and want it fixed ASAP! It helps if there's a good minimal testcase with instructions av

Re: [svg-developers] SVG on Wii

2011-01-03 Thread Erik Dahlstrom
-wise, so I'd recommend limiting the use of those. Authoring for the Wii should be rather similar to authoring for Opera 9.2x, so my advice would be to do that and then test on the Wii. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair

Re: [svg-developers] styling with CSS

2010-12-21 Thread Erik Dahlstrom
ttp://www.w3.org/TR/SVG11/struct.html#UseElement -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a message to: svg-developers-unsubscr...@yahoog

Re: [svg-developers] Re: overflow="hidden"

2010-12-20 Thread Erik Dahlstrom
defined by the width and height attributes, and the viewBox naturally by the viewBox attribute. Anyway, this is what you want I guess: http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; version="1.1" viewBox="0 0 10 10"

Re: [svg-developers] Re: Custom cursors issues

2010-12-17 Thread Erik Dahlstrom
SS2.1 vs CSS3 in the 'cursor' syntax, you can specify a coordinate in CSS3 but not in CSS2.1. If the coordinate (5 12) is removed the fallback cursor (crosshair) is shown correctly in Opera. You can see in the error console that the stylerule is discarded because it's deemed i

Re: [svg-developers] Re: SVG Fonts

2010-11-30 Thread Erik Dahlstrom
;d' attribute in path elements. It wouldn't be real text then of course, but it would still look ok. The rest is mostly just scaling and positioning, and mapping the input characters to glyphs. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W

Re: [svg-developers] Re: hasFeature doesn't work with Filter

2010-11-26 Thread Erik Dahlstrom
ailing there. An alternative could be to use a two-level test, first check with hasFeature, and if that returns false check using the DOM interfaces. Cheers /Erik [1] http://www.w3.org/TR/SVG11/filters.html#InterfaceSVGFEConvolveMatrixElement [2] http://www.adobe.com/svg/indepth/pdfs/

Re: [svg-developers] hasFeature doesn't work with Filter

2010-11-25 Thread Erik Dahlstrom
(toString.call(document.createElementNS('http://www.w3.org/2000/svg','feConvolveMatrix' Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed

Re: [svg-developers] Re: click coordinates not of object

2010-11-23 Thread Erik Dahlstrom
server admins. On a sidenote, it would be nice if most http servers would just do the right thing by default, oh well, maybe in the next 10 years... ;) /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog

Re: [svg-developers] Re: click coordinates not of object

2010-11-22 Thread Erik Dahlstrom
t using the same aspect ratio then you will need to transform coordinates. Cheers /Erik [1] http://www.w3.org/TR/SVG11/types.html#InterfaceSVGLocatable [2] http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGMatrix [3] http://xn--dahlstrm-t4a.net/svg/examples/FixedP

Re: [svg-developers] SVG Fonts

2010-11-15 Thread Erik Dahlstrom
r for that matter any other font format supported in browsers today TTF/OTF/EOT), at least if your goal is making symbols. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ---

Re: [svg-developers] Re: Organized Crime in American Web Design

2010-11-07 Thread Erik Dahlstrom
http://html5boilerplate.com http://svgboilerplate.com Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed - To unsubscribe send a messa

Re: [svg-developers] filters: default if not implemented?

2010-10-29 Thread Erik Dahlstrom
x27;) [2]: * A Conforming SVG Interpreter must parse any SVG document correctly. It is not required to interpret the semantics of all features correctly. Cheers /Erik [1] http://www.w3.org/TR/SVGTiny12/implnote.html#UnsupportedProps [2] http://www.w3.org/TR/SVG11/conform.html#ConformingSVGInt

Re: [svg-developers] - page breaks for printing and viewing

2010-10-29 Thread Erik Dahlstrom
avidwalsh.name/css-page-breaks. It's possible that your snippet will work too, I'd suggest specifying the type of stylesheet though, like this: . Here's another take on your structure: .page { page-break-after: always; } ... Hope th

Re: [svg-developers] Re: fun but buggy -- gears

2010-10-13 Thread Erik Dahlstrom
nwanted side-effects in this example I believe, and seemed to work just fine in Opera, Firefox and Epiphany-webkit. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed -

Re: [svg-developers] obscure things like

2010-10-04 Thread Erik Dahlstrom
in Chrome then. > If a path like this is legal, I think there should be a test case in the > test suite, shouldn't it? It's always nice to be thorough, sure. Have you found any other edge-cases like this one while writing your path parser? Cheers /Erik -- Erik Dahlstrom, Cor

Re: [svg-developers] Accuracy problems...

2010-09-17 Thread Erik Dahlstrom
se image-rendering="optimizeSpeed" to disable the antialiasing for images (in most viewers). Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed

Re: [svg-developers] SVG in html5

2010-08-27 Thread Erik Dahlstrom
he svg namespace), and the DOM is rendered by the svg renderer. Did you mean how much svg support is expected from your tool? In that case I'd say it depends on what it's supposed to do. E.g for a text-editor with syntax highlighting I'd expect it to recognize all svg elements and a