]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Give better description of IE9 transparent click bug & workaround 18081/head 18085/head
authorChris Rebert <code@chrisrebert.com>
Tue, 27 Oct 2015 19:46:02 +0000 (12:46 -0700)
committerChris Rebert <code@chrisrebert.com>
Tue, 27 Oct 2015 19:47:04 +0000 (12:47 -0700)
[skip sauce]
[skip validator]

scss/_carousel.scss

index b02a2cd21111823e570b55f1780ea7fbdad14d94..d9fb3b84d63e7851b62b0f329c595b61be254120 100644 (file)
     cursor: pointer;
     // IE9 hack for event handling
     //
-    // Internet Explorer 9 does not support clicks on elements without a set
-    // `background-color`. We cannot use `filter` since that's not viewed as a
-    // background color by the browser. Thus, a hack is needed.
+    // Internet Explorer 9 does not properly handle clicks on elements with a `background-color` of `transparent`,
+    // so we use rgba(0,0,0,0) instead since it's a non-buggy equivalent.
+    // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
     background-color: rgba(0,0,0,0); // IE9
     border: 1px solid $carousel-indicator-border-color;
     border-radius: 10px;