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

Bad CSS matching #87

Open
xclaesse opened this issue Jun 26, 2013 · 2 comments
Open

Bad CSS matching #87

xclaesse opened this issue Jun 26, 2013 · 2 comments

Comments

@xclaesse
Copy link

I have a MxButton containing an MxBoxLayout with 2 MxIcon inside. I use mx_stylable_set_style_class() to set the name "foo" on the button and "bar" on one of the icons.

In the CSS if I write ".foo:active .bar {}" it is not applied. But if I write ".foo:active > MxBoxLayout > .bar {}" then it works.

That looks like a bug to me, right?

@xclaesse
Copy link
Author

Note that ".foo .bar {}" works, so it is the pseudo-class "active" that confuse MX's CSS parser.

@xclaesse
Copy link
Author

Oh and if I set the name "baz" on the 2nd icon, ".foo:active .baz" does not match and ".foo:active > MxBoxLayout > .baz" does not match neither! but ".foo .baz" and ".foo > MxBoxLayout > .baz" both works.

And I can reproduce this on both 1.4 and master branches.

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

1 participant