SVG in Opera’s desktop, mobile & TV browsers — edition 2011

28
SVG in Opera’s desktop, mobile & TV browsers — edition 2011 @andreasbovens

description

Demos available on http://people.opera.com/andreasb/demos/demos_svgopen2011/ For a long time now, Opera has been committed to implementing SVG in its desktop and mobile browser products. Over the last year, we have been focused on improving the performance of our SVG implementation, while adding new features as well, including support for embedding SVG in HTML5. Our Opera Dragonfly debugger has matured as well and is now a powerful tool for debugging SVG on desktop as well as on mobile. In this presentation, I give a status update of Opera's SVG implementation and introduce some of the latest changes to our Opera Presto engine. I also show demos and practical examples of how SVG can be mixed with other technologies to create compelling web applications.

Transcript of SVG in Opera’s desktop, mobile & TV browsers — edition 2011

Page 1: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

SVG in Opera’s desktop, mobile & TV browsers — edition 2011

@andreasbovens

Page 2: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Oslo, Norway

Page 3: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Developer Relations team

Page 4: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Chris Mills

Bruce Lawson Daniel Davis

Karl Dubost

Shwetank Dixit

Divya Manian

Luz Caballero

Tiffany Brown

Vadim Makeev Mike TaylorZi Bin CheahPatrick Lauke

Andreas Bovens

Page 5: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

It’s been a busy year!

Page 6: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

&

http://www.opera.com/browser/next/http://www.opera.com/browser/http://my.opera.com/desktopteam/

Opera Opera Next

Page 7: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

0

100

200

300

400

10.60 11 11.10 11.50 12

HTML5test.com

& friends

346

Page 9: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

HTML5 parser:- support for new elements- standardized error handling- support for inline SVG

Page 10: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Improved painting performance- painting code on a diet- smarts to optimize for specific TV use cases, e.g. transforms on <g>s with lots of children

Page 11: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Improved painting performance- painting code on a diet- smarts to optimize for specific TV use cases, e.g. transforms on <g>s with lots of children

Also: special focus on hardware acceleration on TVs, set-top boxes, etc.

Page 12: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

We now support text-overflow=ellipsison text and textArea elements...

Talking about TV use cases...

See also http://www.w3.org/2011/03/03-svg-minutes.html#item04

Page 13: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

on desktop for WebGL, 2D canvas, SVG & other painting operations

Hardware acceleration

Page 14: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011
Page 15: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Opera Mobile for Android phones & tablets

http://m.opera.com/

Page 16: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Opera Mobile for Android phones & tablets

http://m.opera.com/

speed, UI optimizations, standards support

Page 17: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

http://m.opera.com/

No more checkerboard, fast panning- new way of rendering visible content- some shortcuts for speed optimization

Page 18: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

http://m.opera.com/

No more checkerboard, fast panning- new way of rendering visible content*- some shortcuts for speed optimization

* we don’t make fully use of this for SVG yet though

Page 19: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

http://m.opera.com/

No more checkerboard, fast panning- new way of rendering visible content*- some shortcuts for speed optimization**

* we don’t make fully use of this for SVG yet though** switching between bilinear and nearest-neighbor interpolation

bilinear interpolation for zoomed images already in the viewport

nearest neighbor interpolation for zoomed images that are pulled in from outside the viewport

Page 20: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

http://m.opera.com/

When developing for mobile, look into using the viewport meta tag, @viewport to solve zooming and panning issues.

it’s CSS, so thiscan be used inside SVG files as well!

Page 21: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

http://m.opera.com/

http://goo.gl/j6YwF

Optimizing your layout

for phones and tablets

using viewport and

media queriesAndreas Bovens - Opera Software

http://goo.gl/f303y

Page 22: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Opera Dragonfly

Page 23: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Opera Dragonfly 1.0 and 1.1 releases.Rich feature set for local and even remote SVG debugging.http://www.opera.com/dragonfly/documentation/

Page 24: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Test automationOperaDriver is part of Selenium 2 and uses the Scope interface (like Opera Dragonfly) to communicate directly with Opera from Java. http://code.google.com/p/selenium/wiki/OperaDriver

Page 25: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

ExampleAutomated game testing using OperaDriver automating the “Inbox Attack” game.

Page 26: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011
Page 27: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

DetailsLong video: http://goo.gl/2VseMShort video: http://goo.gl/iDNSE GitHub repo: http://goo.gl/yQ7b1

Page 28: SVG in Opera’s desktop, mobile & TV browsers  — edition 2011

Thanks for listening :-)Any questions?

@andreasbovens

Thanks to ~yc for the wooden background: http://yc.deviantart.com/art/Wood-Rays-62468397