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

hook > selector for old IE #19

Closed
futurist opened this issue Jan 27, 2016 · 2 comments
Closed

hook > selector for old IE #19

futurist opened this issue Jan 27, 2016 · 2 comments

Comments

@futurist
Copy link

If can hook > selector to let css support old IE that don't support child selector.

'ul>ul': {
  color: 'red'
}

If j2c can hook into the selector to js parser(maybe generate some temp long classname?) to let j2c support old IE? maybe generate below css:

ul ul.temp_secondlevel_ul  {
  color: red;
}
@pygy
Copy link
Member

pygy commented Jan 27, 2016

By old IE, you mean IE6- You want to support it?

Polyfilling CSS features like that is beyond the scope of the j2c core, but it may be implemented as a plugin, once we settle on the details of the interface.

It leaves some questions open:

  • how do you plan to generate and retrieve the 'temp_secondlevel_ul' name?
  • how does it handle more complex selectors?
  • how do you integrate it with scoped names?
  • how does it interact with & and nested selectors?

@futurist
Copy link
Author

futurist commented Feb 4, 2016

found this lib: https://github.com/keithclark/selectivizr
so the problem solved and out of scope of j2c?

@futurist futurist closed this as completed Feb 4, 2016
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

No branches or pull requests

2 participants