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

Semi-advanced optimization #8

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

Semi-advanced optimization #8

danbeam opened this issue Dec 17, 2010 · 0 comments

Comments

@danbeam
Copy link
Owner

danbeam commented Dec 17, 2010

I'd like to use shorthand rules safely when possible

#id { margin: 10px 20px 10px 20px; }

should become

#id { margin: 10px 20px; }

NOTE: I don't want to accidentally override rules by using shorthand that is too generic:

.class { background-color: red; }

If we could verify this is the only selector that applies to this rule, we could safely change this to:

.class { background: red; }

but it's very hard to know how this will affect things.

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