On Wednesday 2009-02-25 20:54 -0500, Boris Zbarsky wrote: > L. David Baron wrote: >> Maybe we could somehow have one rule hash for every pseudo-element >> for which we actually have rules? That could avoid getting too >> bloated (since in many cases there are no pseudo-element rules). > > We could do that, but we'd have more rule hashes than one might think in > the UA level due to all the anon boxes that we treat as pseudo-elements > (most of which we do have rules for in ua.css). We'd also have a rule > hash per different made-up tree pseudo-element. It might be ok, though.
Instead, we could have all the pseudo-element rules in a separate hash, where that hash contains either a simple list of rules, or a rule hash. We'd switch from simple-list to rule-hash if we ever got a rule that would hash as non-universal. This would mean the anon boxes wouldn't get a rule hash. (Still not sure about the tree pseudo elements, though.) -David -- L. David Baron http://dbaron.org/ Mozilla Corporation http://www.mozilla.com/ _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

