Re: Guideline 3.4 comment (ralative vs. absolute units)

No, the reason that I scaled it based on the font size is that for icons the
font size that someone chooses is a useful baseline for working out sizes. I
am currently working in the AU group on icons, and it seems that one of the
members of the group uses quite a small text size, or uses small icons. I
prefer the icons larger, but if I magnify my text I want to magnify icons to
match, where possible.

(The example I used assumes that the pg won't scale very well but the SVG
will - and assumes that PNG and Gif images will also be deprecated in favour
of SVG in the real world - I suspect that won't be completely true in teh
next few months though.)

Cheers

Charles

On Tue, 11 Dec 2001, Vadim Plessky wrote:

  On Tuesday 11 December 2001 00:38, Charles McCathieNevile wrote:
  |   dropped wcag-editor from the thread for the moment.
  |
  |   In fact I prefer to have my images also scaled based on my personal font
  |   preferences, but again, the author doesn't know what they are.
  |
  |   example code for XHTML with a fallback for an image that is known not to
  |   scale well:
  |
  |     <object class="icon" data="mm_tool-svg" type="image/svg+xml">
  |       <object width="20" height="15" data="mm_tool-raster"
  | type="image/png"> A multimedia tool
  |       </object>
  |     </object>
  |

  Shouldn't it be:

  <style type="text/css">
    .icon { width: 20pt; height: 20pt }
  </style>
  ...
    <object class="icon" data="mm_tool-svg" type="image/svg+xml">
      <object class="icon" data="mm_tool-raster" type="image/png">
        A multimedia tool
      </object>
    </object>

  (NOTE that I included CSS class for PNG image inside)
  That should scale better.  :-)

  Aren't width="20" and height="15" depreciated in XHTML?
  Of course you can use them, but using CSS properties instead of width and
  height attributes is much better practice, IMO.
  As you define class "icon" for SVG picture, I guess you can re-use it for PNG
  as well.

  Please let me know if such re-written example scales better for you.
  (BTW: what is your testing environment? Opera? )

  |   combined with the CSS rule
  |
  |     .icon { width: 2 em ; height 1.5 em }
  |
  |   Cheers
  |
  |   Charles
  |
  |   On Tue, 11 Dec 2001, Jim Ley wrote:



-- 
Charles McCathieNevile    http://www.w3.org/People/Charles  phone: +61 409 134 136
W3C Web Accessibility Initiative     http://www.w3.org/WAI    fax: +1 617 258 5999
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)

Received on Friday, 14 December 2001 22:31:20 UTC