-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
29 lines (21 loc) · 797 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Super Selectors is a jQuery plugin enabling better CSS selector support for older browsers
TODO:
* Finish demo page
* Add appropriate rules on the fly, so that users won't need to include the classes in their CSS. This will involve modifying the regular expressions.
WARNING:
IE has a "fun" habit of discarding any style rules which contain selectors it cannot parse. This can cause unintended results. The only reliable workaround I've found is to declare your rules twice, so that the super-selector version will still be applied.
So, instead of
div.example > :first-child,
div.example .first-child {
background: #0f0;
color: #f0f;
}
You should write:
div.example > :first-child {
background: #0f0;
color: #f0f;
}
div.example .first-child {
background: #0f0;
color: #f0f;
}