W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > January to March 2001

RE: SVG Plugin from Adobe (sizing, flowing, and mixed media)

From: Charles McCathieNevile <charles@w3.org>
Date: Thu, 4 Jan 2001 10:31:37 -0500 (EST)
To: "Leonard R. Kasday" <kasday@acm.org>
cc: Kynn Bartlett <kynn-edapta@idyllmtn.com>, Al Gilman <asgilman@iamdigex.net>, "'w3c-wai-gl@w3.org'" <w3c-wai-gl@w3.org>
Message-ID: <Pine.LNX.4.30.0101041019580.29358-100000@tux.w3.org>
The SVG itself sets its size in em. It inherits that value from the browser
default, as set by the user.


HTML page source:

... <img src="some.svg" alt="a cool browser makes this appear as text"/> ...

SVG source:

<svg width="17em" height="12em" viewbox="...

   .fancytext {font-size:1.7em}...

CSS user stylesheet (which the browser created for the user with a nice

html, svg {font-size: 36pt !inherit}

(since they don't have constraint-based CSS except in a development demo of
Amaya - sigh)

Alternatively, it makes sense to use foreignObject to include old fashioned
HTML content in SVG quite often, which would of course inherit HTML styles
from the browser. (The adobe plugin doesn't yet. Amaya does. Batik is a
standalone, but allows a user style sheet. The SVG group knows more...)

Charles McCN

On Thu, 4 Jan 2001, Leonard R. Kasday wrote:

  At 07:49 AM 1/4/01 -0500, Charles McCathieNevile wrote:
  >An alternative that should work is to include the SVG without specifying a
  >size, and then let the SVG inherit its size from teh user stylesheet
  >generated by the browser.

  I don't understand. If there's no size at all, what's to inherit?

  Leonard R. Kasday, Ph.D.
  Institute on Disabilities/UAP and Dept. of Electrical Engineering at Temple
  (215) 204-2247 (voice)                 (800) 750-7428 (TTY)
  http://astro.temple.edu/~kasday         mailto:kasday@acm.org

  Chair, W3C Web Accessibility Initiative Evaluation and Repair Tools Group

  The WAVE web page accessibility evaluation assistant:

Charles McCathieNevile    mailto:charles@w3.org    phone: +61 (0) 409 134 136
W3C Web Accessibility Initiative                      http://www.w3.org/WAI
Location: I-cubed, 110 Victoria Street, Carlton VIC 3053, Australia
until 6 January 2001 at:
W3C INRIA, 2004 Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France
Received on Thursday, 4 January 2001 10:31:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 16 January 2018 15:33:35 UTC