With respect to IE's 4,095 CSS rule limit, would the following be counted as one or five rules:
.foo, .bar, .baz, .foo p, .bar a { property: value; }
I'm not 100% sure how the older IE browsers parse the rules. Thanks!
With respect to IE's 4,095 CSS rule limit, would the following be counted as one or five rules:
.foo, .bar, .baz, .foo p, .bar a { property: value; }
I'm not 100% sure how the older IE browsers parse the rules. Thanks!
Judging by several people's attempts to solve this issue, it's a limit on selectors. Meaning you split each line at commas ,
when counting (as this example of a selector counter does: https://stackoverflow.com/a/20496041/624590 )
Which means your example counts as 5 points against the 4095 limit.
If you wish to prove it to yourself, take your IE browser to this page I set up: http://dylancodes.net/wayBack/ie9selectors/
It counts a few extra, to 4097, in a stylesheet formatted as:
.test0, .test1, .test2, ..., .test4097 { background: green; }
I've only checked using IETester software, but it seems the first three divs failed to get the color (counting from 0, so 4094 is the 4095th item, so there are three beyond the rule).