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

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

@igorsantos07

Description

@igorsantos07

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions