Skip to content

Commit 255b579

Browse files
author
Dirk Ginader
committed
1.5.1 changed IE Hack \0 back to \9 as \0 was also triggering Opera while \9 does not
1 parent 90fd434 commit 255b579

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

index.html

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* * 1.4.1 added missing exclude for other modern Browsers who also read the CSS3 selector. IE9 Hack is now perfect.
2424
* * 1.4.2 changed the \9 hack to \0 as it appears to be more reliable in IE9
2525
* * 1.5 adding Support for Firefox 4 thanks to Estelle Weyl
26+
* * 1.5.1 changed \0 back to \9 as \0 was also triggering Opera while \9 does not
2627
-->
2728

2829
<style type="text/css">
@@ -50,6 +51,18 @@
5051
display: block;
5152
}
5253

54+
/* Firefox 3.6+ */
55+
BODY:nth-of-type(1) #firefox3_6, x:-moz-any-link, x:default {
56+
display: block;
57+
}
58+
59+
/* Firefox 3.6+ */
60+
@media screen and (-moz-images-in-menus) {
61+
#firefox3_6 {
62+
display: block;
63+
}
64+
}
65+
5366
/* Firefox 4+ */
5467
@media screen and (min--moz-device-pixel-ratio:0) {
5568
#firefox4 {
@@ -74,12 +87,12 @@
7487

7588
/* IE6, IE 7, IE 8 and IE 9 */
7689
body #ie6andie7andie8andie9{
77-
display:block\0;
90+
display:block\9;
7891
}
7992

8093
/* IE 8 */
8194
body #ie8{
82-
display:block\0;
95+
display:block \9;
8396
*display: none; /* overwrite for ie6 and ie7*/
8497
}
8598
body #ie8:nth-of-type(1n){ /* overwrite for ie9 which still also reads the \9 hack */
@@ -88,7 +101,7 @@
88101

89102
/* IE 9+ */
90103
body #ie9:nth-of-type(1n){ /* CSS3 Selector that is interpreted by many modern Browsers including IE()*/
91-
display:block\0; /* Hack to specify Internet Explorers including 9 so we exclude FF, webkit, etc */
104+
display:block \9; /* Hack to specify Internet Explorers including 9 so we exclude FF, webkit, etc */
92105
}
93106

94107
/* Webkit (Safari and Chrome) */
@@ -113,6 +126,7 @@
113126
<p id="firefox2">Firefox 2 and 3</p>
114127
<p id="firefox3">Firefox 3+</p>
115128
<p id="firefox3_5">Firefox 3.5+</p>
129+
<p id="firefox3_6">Firefox 3.6+</p>
116130
<p id="firefox4">Firefox 4+</p>
117131
<p id="ie7">IE 7</p>
118132
<p id="ie6">IE 6</p>

readme.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ CSS Hacks are something one doesn't talk about in the public. Developers are ash
77
In my Demo I have Paragraphs containing the names of the targeted Browsers and hide them by default.
88
Then I use the Browser specific Hacks to make the Browser names visible again.
99

10-
Version 1.5
11-
-----------
10+
Version 1.5.1
11+
-------------
1212
* Firefox
1313
* 2
1414
* 3

0 commit comments

Comments
 (0)