splorp/tersus — Issue #25: Stylesheet optimization
Author: Avengio
Created: 2011-12-06 21:23:29+00:00
State: open

In the flavoured stylesheets I've noticed that html elements are sometimes prepended to the ID or class that is being targeted:

`section#content article`

This rule specifically ties the `#content` ID to a `section` element unnecessarily and creates a dependency when customizing the markup of a project. We could simplify the rule to:

`#content article`

This way `#content` blocks can be moved into a `div`, `section`, or `article` depending on how the page is authored and the resulting DOM changes do not break style. It also optimizes stylesheet performance and reduces specificity.

Thoughts?