Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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://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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants