When given a DOM or URL that corresponds to a stylesheet, for this page only create a "compiled" set of styles with only the necessary styles in it. For example:
Given the mark up:
The following styles:
div { color: red; }
h1 { color: black; }
could be "compiled" to:
because all uses of the div { color: red; } rule are overridden.