Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Specificity question #28

Closed
morten opened this Issue · 1 comment

2 participants

@morten

Since

h1 { font-size: 5px; }
h2 { font-size: 5px; }

Is equivalent to

h1,h2 { font-size: 5px; }

Shouldn't the specificity be calculated per selector for the rule set rather than just set to 0 when given a compound selector?

I've implemented the change here, but one of the existing tests fail and I'd like your thoughts on this morten/css_parser@cf8d82d

@alexdunae alexdunae closed this in a0c9c96
@alexdunae
Owner

Defaulting to zero made sense to me at the time, but seeing your patch made me reconsider. I think what you've put together is a much more sane behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.