W3C home > Mailing lists > Public > www-style@w3.org > April 2001

RE: clarification needed : Computed Style Value of 'font-family'

From: Jeffrey Yasskin <jyasskin@appcomp.com>
Date: Mon, 30 Apr 2001 15:03:28 -0500
Message-ID: <86BF1235655FD411BF4100C0F017B8A3046C15@SERVER1>
To: "'Bjoern Hoehrmann'" <derhoermi@gmx.net>, Dylan Schiemann <dylans@yahoo.com>
Cc: Daniel Glazman <glazman@netscape.com>, www-dom@w3.org, www-style@w3.org
So is there a way for client-side scripters to find out the actual (pixel)
width of an element? Or the actual font used?
Maybe "getComputedStyle" isn't the way to do it, and maybe the DOM shouldn't
be concerned with display issues, but I can see a usefulness for that kind
of information, and the way to get to useful information should be

Jeffrey Yasskin

P.S. Bjoern: That user agent style sheet you refer to would change when the
user resized the window? Just making sure that's what you mean.

-----Original Message-----
From: Bjoern Hoehrmann [mailto:derhoermi@gmx.net]
Sent: Monday, April 30, 2001 2:00 PM
To: Dylan Schiemann
Cc: Daniel Glazman; www-dom@w3.org; www-style@w3.org
Subject: Re: clarification needed : Computed Style Value of

* Dylan Schiemann wrote on www-dom@w3.org:
><div style='width:80%;'>
>will return a value in pixels that is 80% of the width
>of the viewport, right?

Yes, but assume a user agent style sheet with

	:root { width: 400px }

>So it does depend on the rendering...

Nope, just on the cascade :-)
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Monday, 30 April 2001 16:08:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:57 UTC