Skip to content

Instantly share code, notes, and snippets.

@joannou
Created February 14, 2013 18:28
Show Gist options
  • Select an option

  • Save joannou/4955017 to your computer and use it in GitHub Desktop.

Select an option

Save joannou/4955017 to your computer and use it in GitHub Desktop.
How I create 'moats' to defend my CSS.
Before you do the following, use the most specific selector you can.
1. Isolate your HTML and CSS into a blank HTML document
2. For each ruleset:
1. Copy computed style (including inherited)
2. Remove -webkit properties
3. Remove your properties
4. Mix the result into your ruleset
When you update any of your properties, you should do the above again for the updated rulesets.
@digitalmud
Copy link

I don't know what this means.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment