[webkit-dev] Question about the simpleUserAgentStyleSheet

Alexandru Chiculita achicu at adobe.com
Thu Apr 9 07:26:18 PDT 2009

I have a question about the simpleUserAgentStyleSheet used in http://svn.webkit.org/repository/webkit/trunk/WebCore/css/CSSStyleSelector.cpp .

It looks like 'simpleUserAgentStyleSheet' is used to compute the style for elements like 'html', 'body', 'span', 'br', 'a' and 'div' instead of styles loaded from "html4.css".

The html4.css defines a font-family for the 'html' tag, but it is ignored and the font-family fallbacks to the default one from global settings ('Times' I think).

Shouldn't CSSStyleSelector restyle all the parsed html elements when the full CSS is loaded?

The html4.css defines "html { font-family: Verdana, Helvetica, Arial; }" and alert( getComputedStyle( document.getElementsByTagName("html")[0] )["font-family"] ) says "Times" for a simple text page.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090409/3fafaded/attachment.html>

More information about the webkit-dev mailing list