Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!important #1

Closed
GGAlanSmithee opened this issue Oct 11, 2015 · 2 comments
Closed

!important #1

GGAlanSmithee opened this issue Oct 11, 2015 · 2 comments

Comments

@GGAlanSmithee
Copy link
Owner

Figure out how to handle !important styles.

CSS syntax guidelines
CSS syntax guidelines easy read

if `declaration.property` already exists for `selector`
    if old `declaration.value` is `!important`
        if new `declaration.value` is !important`
            override existing `declaration.value` for `selector`
        else
            keep existing `declaration.value` for `selector`
    else
        override existing `declaration.value` for `selector`
else
    add `declaration.property` with `declaration.value` on `selector`
@GGAlanSmithee
Copy link
Owner Author

This issue will be resolved in #2, using regex to find !important styles.

@GGAlanSmithee
Copy link
Owner Author

Closing this, since this is covered by the above-mentioned issue

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

No branches or pull requests

1 participant