Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Browser sniffer doesn't allow to selectively add rules #164

Open
igorsantos07 opened this issue May 9, 2011 · 0 comments
Open

Browser sniffer doesn't allow to selectively add rules #164

igorsantos07 opened this issue May 9, 2011 · 0 comments

Comments

@igorsantos07
Copy link
Member

I want to create a box with rounded corners, but it's not possible in IE versions.
So I tried to add the same selecotr, again, but with the 'browser' rule to add it only to IE, and another equal that would apply to everything that's not IE. The CSSP ended looking like that: http://pastie.org/1881603

I ended up by having no styles at all in IE, and all styles grouped in the other browsers (those I wanted for then, and those I didn't).
Looks like the sniffer plugin doesn't filter for each written group of properties, but it works on the summarized CSSP. So, it would add all properties to the 'box' class and, finally, remove everything when it's an IE - using the last value for 'browser'.

That's a problem, because makes we need, at least, 2 different classes to set everything right; this way we can have three different declarations for a common element, one for common styles, one for IE, and another for non-IE. Of course, it's not possible, because it makes the code become ugly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant