When having multiple @-webkit-region rules for the same region that contain the same declaration, the latter declaration does not override the former declaration. However, this only happens if the former @-webkit-region rule contains a CSS declaration for the * selector.
After some more investigations the problem turned out to be the fact that the position associated with a RuleSet was incorrectly computed for region styling - the number of rules inside the @-webkit-region declarations was basically ignored when computing the position for the rules inside them.
Created attachment 133789 [details] Proposed fix and ref-tests
Comment on attachment 133789 [details] Proposed fix and ref-tests r=me m_ruleCount is pretty silly, some sort of refactoring would be good.
Comment on attachment 133789 [details] Proposed fix and ref-tests Double changelog entries needs to be fixed before landing.
Comment on attachment 133789 [details] Proposed fix and ref-tests ChangeLogs are doubled.
Created attachment 133794 [details] Fixed duplicate changelog entry.
Comment on attachment 133794 [details] Fixed duplicate changelog entry. View in context: https://bugs.webkit.org/attachment.cgi?id=133794&action=review > Source/WebCore/ChangeLog:12 > +2012-03-26 Mihai Balan <mibalan@adobe.com> > + > + Fixing style > + > + Cleaned up code > + > + Initial fix and tests > + > + [CSS Regions] In region styling (@-webkit-region) the position for CSS rules is incorrectly computed > + https://bugs.webkit.org/show_bug.cgi?id=81901 > + > + Reviewed by NOBODY (OOPS!). Please also update the ChangeLogs to follow our usual format: Bug title. Bug URL. Reviewed by ... The reasoning for and description of the code change
Created attachment 133807 [details] Fixed changelog problems.
Comment on attachment 133807 [details] Fixed changelog problems. Clearing flags on attachment: 133807 Committed r112099: <http://trac.webkit.org/changeset/112099>
All reviewed patches have been landed. Closing bug.