I've mostly cheated by using CSS preprocessors like Sylus (http://stylus-lang.com ) or Sass to avoid page rendering surprises, and a postprocessor like PostCSS to optimize and not worry if certain latest modules have multi browser support. A survey of these things here if interested: https://www.mdpi.com/2078-2489/9/1/17/htm
I also once read through this thesis, to understand how the rule overrides work and other problems in CSS, but gave up keeping with the new standards and switched to preprocessors https://www.wiumlie.no/2006/phd/#ch-problems
I also once read through this thesis, to understand how the rule overrides work and other problems in CSS, but gave up keeping with the new standards and switched to preprocessors https://www.wiumlie.no/2006/phd/#ch-problems