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

Take in account selectors support in functional pseudo-classes #450

Open
lahmatiy opened this issue Jan 26, 2022 · 0 comments
Open

Take in account selectors support in functional pseudo-classes #450

lahmatiy opened this issue Jan 26, 2022 · 0 comments

Comments

@lahmatiy
Copy link
Member

Currently CSSO doesn't traverse selectors in functional pseudo-classes when build pseudoSignature which leads to the incorrect merge of rules, e.g.

.cc-expiry-month:not(:-moz-placeholder-shown) {
      width: 42px;
}

.cc-expiry-month:not(:-ms-input-placeholder) {
      width: 42px;
}

.cc-expiry-month:not(:placeholder-shown) {
      width: 42px;
}

Will produce the incorrect result (pretty printed):

.cc-expiry-month:not(:-moz-placeholder-shown),
.cc-expiry-month:not(:-ms-input-placeholder),
.cc-expiry-month:not(:placeholder-shown){
    width:42px
}

The correct output should not merge rules.

(example taken from the comment in #416)

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

No branches or pull requests

1 participant