- From: Vadim Plessky <lucy-ples@mtu-net.ru>
- Date: Tue, 11 Dec 2001 14:56:07 +0000
- To: Charles McCathieNevile <charles@w3.org>
- Cc: WAI GL <w3c-wai-gl@w3.org>
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: -- Vadim Plessky http://kde2.newmail.ru (English) 33 Window Decorations and 6 Widget Styles for KDE http://kde2.newmail.ru/kde_themes.html KDE mini-Themes http://kde2.newmail.ru/themes/
Received on Tuesday, 11 December 2001 07:28:06 UTC