On Tue, Sep 14, 2010 at 07:26:53PM +0100, Jeremy Henty wrote:
On Mon, Sep 13, 2010 at 03:54:22PM -0400, Benjamin Johnson wrote:
On Mon, 13 Sep 2010 15:42:17 -0400, Johannes Hofmann <Johannes.Hofmann@gmx.de> wrote:
Hm, I've never seen the "text" property in CSS, can you point me to the place where it is documented? Also in http://www.penny-arcade.com/2010/9/10/ I can't find the string "text:" neither in the source nor in the stylesheet - am I missing something?
I'm guessing it's just a typo for "color".
Yes, you're right. I'm bewildered as to how I could have messed that up. But anyway, dillo ignores the "color" attribute on the html element (as easily seen by changing "text" to "color" in the example I gave and then experimenting with changing between "html" and "body"). So, how to fix this?
It took me a while to find out, but the reason is rather simple: The <html> is opened before the style is loaded (it's in <head> after all). So at the time we call startElement() for <html>, we don't have the style information. I didn't find anything in the CSS reference how to handle this case, but major browsers seem to allow CSS for the html-element. We could somehow delay the startElement() call for <html> until <head> is parsed completely, but I have to look for a way to make this hack not too ugly... Suggestions welcome :-) Cheers, Johannes
Regards,
Jeremy Henty
_______________________________________________ Dillo-dev mailing list Dillo-dev@dillo.org http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev