From: Bjoern H. <der...@gm...> - 2003-07-07 20:08:43
|
* Robin Berjon wrote: >Bjoern Hoehrmann wrote: >> I have a ruleset >> >> p:first-line { } >> >> CSS::SAC fails to parse it. Around line 1000 >> >> Thoughts? > >This is a long standing bug, it requires some change in the tokenizer, or a bit >later to special-case pseudo-elements. I've started to put my head back into SAC >for a clean-up, that's high on the list together with patches from you and Briac. Great. From the POD the problem with attaching pseudo-elements to elements as coselectors. I'm not sure which is the right representation. Don't forget to update CSS::SAC::Writer too so that it writes it out properly. Flute and Batik both use $sf->create_child_selector(<p>, <first-line>) for the selector above. Note that CSS Level 3 will eventually allow attaching pseudo-elements to pseudo-elements. It's not in the selectors CR, but the generated content WD has examples. CSS::SAC should parse them properly. And as we are here, CSS::SAC recognizes :selection as pseudo-elements. That's not accurate, since the single-colon notation is allowed only for ::first-line, ::first-letter, ::after, and ::before, :selection should thus parse as pseudo class. regards. |