I would like to work on the CSS3 Paged Media support, esp. the margin boxes.
I'm studying the code for some time now and would welcome it if someone could
assist me in figuring out what needs to be done...
First up, I think I should tackle the missing support in the parser, i.e.
solving the FIXME in CSSParser::createMarginAtRule. I found that
CSSFontFaceRule looks similar and could write some code based on that. A few
questions arise now:
a) For the unit tests (probably not only there) I need to have a special
margin-at CSSRule for cssText(). I'll probably be able to copy most of the
stuff again, but where in the build system do I have to add these new files?
b) What CSSRule::Type should the above have? WEBKIT_MARGINAT_RULE at the end
(hence value 11)?. I could not find an official IDL proposal that includes the
margin at rules.
c) These margin-at rules can only occur inside a page rule, and I need to
access them from somewhere - what is the suggested path to take here? create
StyleRulePage::setMarginRules or similar? Or reuse stuff from StyleRuleBlock?