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

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

From: Jeff Yates <PBWiz@mail.pbwizard.com>
Date: Tue, 1 May 2001 00:14:42 -0400 (EDT)
Message-Id: <200104301526.AA502530284@mail.pbwizard.com>
To: Dylan Schiemann <dylans@yahoo.com>, Bjoern Hoehrmann <derhoermi@gmx.net>
CC: Daniel Glazman <glazman@netscape.com>, <www-dom@w3.org>, <www-style@w3.org>

Bjoern,

>Well, the 'window' and 'navigator' etc. objects that
>can be accessed via scripting languages seem to be
>useful for web developers, too, but they reflect the
>implementation, the envoirement, whatever you like, to
>provide access to these interfaces is outside the
>scope of the DOM. The DOM does not care if there is
>something installed on the system, if the user agent
>is able to render this or that and so on, the DOM just
>reflects the document and all informations actualle are
>_in the document_. The computed value of a CSS property
>value relies on style declarations for other nodes, not
>on anything else.

This is a very narrow attitude.  If this is the W3C DOM WG's attitude then why is CSS even part of the DOM?  Style is a visual representation of the document.  Style is nothing without the implementation.  

Since GetComputedStyle is about the representation, then it should reflect HOW the implementation is representing the style.  Period!  Thus answer b should be correct.

Jeff.





---------- Original Message ----------------------------------
From: Bjoern Hoehrmann <derhoermi@gmx.net>
Reply-To: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 30 Apr 2001 17:29:41 +0200

* Dylan Schiemann wrote on www-dom@w3.org:
>> >  font-family : Helvetica, Arial, sans-serif
>> >
>> >What is the computed style value for 'font-family'
>> on this element, 
>> >supposing that Helvetica font is not available on
>> the system but Arial is ?
>> >
>> >(a) "Helvetica, Arial, sans-serif"
>> >(b) "Arial"
>> >(c) "Arial, sans-serif

>(b) is certainly more useful to a client-side web
>developer.

Well, the 'window' and 'navigator' etc. objects that
can be accessed via scripting languages seem to be
useful for web developers, too, but they reflect the
implementation, the envoirement, whatever you like, to
provide access to these interfaces is outside the
scope of the DOM. The DOM does not care if there is
something installed on the system, if the user agent
is able to render this or that and so on, the DOM just
reflects the document and all informations actualle are
_in the document_. The computed value of a CSS property
value relies on style declarations for other nodes, not
on anything else.

The DOM works even without something that renders something,
that's a good thing and we shouldn't change that.

>What should getComputedStyle return in ie5.0 (if it
>was supported) for one of the border-style
>declarations that is mapped to solid?  As far as I can
>tell, the computedStyle would be the style declared,
>even though the rendered style is solid.

If the specified value is 'solid', the computed value will
be 'solid', too, since 'solid' is an absolute value.
-- 
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/



--
Jeff Yates
e-mail:    PBWiz@PBWizard.com
Homepage:  http://www.PBWizard.com

--
Received on Tuesday, 1 May 2001 02:44:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT