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

Add support for attribute selector case insensitive #111

Closed
MoOx opened this issue Apr 30, 2015 · 5 comments
Closed

Add support for attribute selector case insensitive #111

MoOx opened this issue Apr 30, 2015 · 5 comments

Comments

@MoOx
Copy link
Owner

MoOx commented Apr 30, 2015

http:https://www.w3.org/TR/2013/WD-selectors4-20130502/#attribute-case

From a @ben-eb idea

i had a brilliant, yet stupid idea for a postcss module - you know in CSS4 we will get [attr=test i] - which will match insensitively?
well, you can write a module that converts that to [attr=test], [attr=Test], [attr=TEst], [attr=TESt], [attr=TEST], [attr=tEst] etc
how genius is that?

@gjjones
Copy link

gjjones commented Jan 12, 2016

Am I wrong in thinking that this would expand to 2^n variations, where n=character length? It would be an opt-in with the "i" option, but this would get out of control quick.

Is this worth the potential pitfalls?

@ben-eb
Copy link
Contributor

ben-eb commented Jan 12, 2016

@gjjones Yep, which is why it's a stupid idea. But it could let people try out the new case-insensitive syntax in browsers that don't support it yet. 😄

@Semigradsky
Copy link
Collaborator

@MoOx
Copy link
Owner Author

MoOx commented Aug 10, 2016

Feel free to make a PR for it ;)

@MoOx
Copy link
Owner Author

MoOx commented Nov 10, 2016

Closed by #306

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

4 participants