new CSS parser

David Hyatt hyatt@apple.com
Wed, 15 Jan 2003 18:28:34 -0800


On Wednesday, January 15, 2003, at 04:29 AM, Lars Knoll wrote:

> * I removed the @-konq-quirks hack and favored a solution with two 
> style
> sheets: html4.css and quirks.css. This gives a clearer separation and 
> cleaner
> code in the CSSStyleSelector.

This is ok with me.  The advantage of the @-directive was that you 
could mingle rules
of differing specificity throughout the file, in case you needed to put 
a quirks rule above or below a standard rule.  Hopefully this won't be 
an issue.  Having a separate stylesheet is how Mozilla does it as well 
(it's even named quirks.css).

> * fix the weight of non CSS presentational hints in the style selector 
> to be
> CSS2.1 compliant
> * check all properties in CSS2.1 for changes against the 2.0 specs
> * check the parser for memory leaks in case of parsing errors
> * reimplement the "quirky em" hack

Yup, we'll need the "quirky em" hack. :)

Hope that gives you a small overview over the changes. It might be worth
> switching safari over to the new code, but it is still rather new and 
> surely
> still not too tested very extensively.
>

We will definitely want to take this code soon into Safari.

dave