It’s just data

Resizable Inline Images

Jacques Distler: One of the nicest features of using MathML and SVG is that the resulting equations and figures are “resolution-independent.” They rescale, along with the text, when the user uses the “text zoom” feature of their browser.  Here’s how to create inline SVG figures which rescale in the fashion just described.

Like most things, this seems so obvious in retrospect.  Believe it or not, I had tried various combinations (mostly focusing on usage of the style attribute within the svg itself), and never stumbled upon this obvious solution.

I’m now deploying this blog wide.  Thanks!


So what what was the trick?

Posted by Anton Tagunov at

links for 2007-03-09

BLABBERMOUTH.NET - RUSH Frontman Hangs With SEBASTIAN BACH On Set Of ‘Gilmore Girls’ (tags: rush) Sam Ruby: Resizable Inline Images A cool evolution in SVG support. (tags: svg webstandards w3c) Welcome to SeatGuru! Your Guide to...

Excerpt from cygweb at

So what what was the trick?

Looks like the trick was putting the em sizes on an XHTML wrapper element instead of the svg elements itself (and sizing the svg element in %) to work around Gecko bug #305859.

Posted by Henri Sivonen at

The “trick” has been around forever, and applies not just to Gecko, but to the Adobe SVG plugin and (to my knowledge) other SVG renders (the Adobe plugin is more forgiving than the others).

Only recently, though, did I decide to adapt it to inline SVG.

Posted by Jacques Distler at

It looks like Planet Intertwingly has eaten your styled div, resulting in no zoomed benefits planetside.

Posted by Mike Mariano at

other SVG renders

Opera 9, WebKit nightlies and Prince 6.0 alpha support the sizing of the svg element itself in ems. Using the width and height attributes of the svg element has the benefit that the image box degrades gracefully by disappearing altogether in SVG-unaware XHTML UAs. I think total disappearance in SVG-unaware UAs is desirable for decorative images such as those used on this blog.

Posted by Henri Sivonen at

(Of course, the resulting total disappearance in Gecko-based browsers is not desirable, but it would be desirable to have the aforementioned bug fixed.)

Posted by Henri Sivonen at

It looks like Planet Intertwingly has eaten your styled div

The problem was in the feed itself.  Fixed.  Thanks!

Posted by Sam Ruby at

Sam Ruby: Resizable Inline Images

[link]...

Excerpt from del.icio.us/tag/svg at

Sam Ruby: Resizable Inline Images

wearehugh : Sam Ruby: Resizable Inline Images - good lord, we need svg hacks now? i give up Tags : hacks svg...

Excerpt from HotLinks - Level 1 at

links for 2007-03-11

Planète Béranger: Autohinting, Hinting, Bytecode Interpreting: Freetype2 Clarifications (tags: linux fonts) Code snippets:On page load - MDC (tags: mozilla firefox xul extensions development) Problem with display remaining black after resume -...

Excerpt from dive into mark at

So I guess I’m wrong to assume “Scalable Vector Graphics” are...well...scalable  without help.

Posted by Devon Young at

So I guess I’m wrong to assume “Scalable Vector Graphics” are...well...scalable  without help.

The images themselves are scalable (example: open this in a separate window and resize the window to see what I mean); it is the interaction with the embedding DOM that is buggy/incomplete/non-interoperable w/ contemporary browsers.

It is a frustrating catch-22: people don’t use it because browsers are buggy, and browsers don’t fix it because there isn’t much demand.  In times like these having people with the confidence to publish valuable content without working around others’ bugs seems like an important part of the ecosystem.

Posted by Sam Ruby at

Inline vs. Referenced SVG

Jeff Schiller:  Thanks! FYI: my personal “publish” interface has a select dropdown that lets me chose from my ever growing pallet of icons and incorporates then into the page in a way that allows resi... [more]

Trackback from Sam Ruby

at

Add your comment