Skip to content

fix(postcss-merge-rules): check for ms vendor#480

Merged
alexander-akait merged 3 commits intocssnano:masterfrom
evless:fix/ms-vendors
May 29, 2018
Merged

fix(postcss-merge-rules): check for ms vendor#480
alexander-akait merged 3 commits intocssnano:masterfrom
evless:fix/ms-vendors

Conversation

@evless
Copy link
Contributor

@evless evless commented May 29, 2018

fixes #419

@ai
Copy link
Member

ai commented May 29, 2018

Maybe we should check not just prefix but whole selector? To be sure that it is placeholder selector?

@alexander-akait
Copy link
Member

Yep, looks like better use -ms-input-placeholder whole selector and add comment to future developers:

Internet Explorer use :-ms-input-placeholder.
Microsoft Edge use ::-ms-input-placeholder.

@coveralls
Copy link

coveralls commented May 29, 2018

Coverage Status

Coverage increased (+0.0004%) to 99.488% when pulling 465cf52 on evless:fix/ms-vendors into 172f1af on ben-eb:master.


// Internet Explorer use :-ms-input-placeholder.
// Microsoft Edge use ::-ms-input-placeholder.
const findMsInputPlaceholder = selector => ~selector.indexOf('-ms-input-placeholder');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use regex with i flag, because css is case insensitivity language

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, well, I did not think about it

@alexander-akait alexander-akait merged commit e4e55d1 into cssnano:master May 29, 2018
@alexander-akait
Copy link
Member

@evless Thanks for work!

@evless
Copy link
Contributor Author

evless commented May 29, 2018

@evilebottnawi I apologize, but can I make a commit with the addition of a list of contributors? :)

@alexander-akait
Copy link
Member

alexander-akait commented May 29, 2018

@evless yep, feel free to send PR 👍

@alexander-akait
Copy link
Member

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

Successfully merging this pull request may close these issues.

mergeRules incorrectly merges placeholder selectors

4 participants