Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

"Compiled" CSS #9

Open
danbeam opened this issue Dec 17, 2010 · 0 comments
Open

"Compiled" CSS #9

danbeam opened this issue Dec 17, 2010 · 0 comments

Comments

@danbeam
Copy link
Owner

danbeam commented Dec 17, 2010

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:

<div><h1>Yay!</h1></div>

The following styles:

div { color: red; }
h1 { color: black; }

could be "compiled" to:

h1 { color: black; }

because all uses of the div { color: red; } rule are overridden.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant