In Safari 5.1.3 I have just noticed that, when writing a CSS adjacent sibling selector (er the +
one) and when referencing a <nav>
element - the browser fails to honor the CSS.
So:
h1 + p { ... } /* works fine */
h1+p { ... } /* works fine */
and
h1 + nav { ... } /* works fine */
h1+nav { ... } /* but, does NOT work */
I've tested these with other html 5 elements (section, article, aside) and they seem to work fine. Until you put a nav element into the mix; then it breaks. Here is a jsfiddle.
This is proving frustrating as my rails asset packer is minifying the css and taking out unnecessary spaces. This isn't an issue for IE7, Firefox, Chrome or Opera - but Safari 5..
Anyone else had similar? Know why? Know a way to fix?