Проблема с отображением стрелки CSS в Firefox

Контекст

Я создал всплывающую подсказку на чистом CSS с псевдоэлементом : до и : после для стрелки.

Отрисовка отличается от Chrome 16 до Firefox 9 и 10.

Вы видите, что не так?

Снимок экрана Chrome

enter image description here

Снимок экрана Firefox

enter image description here

Демонстрация

http://jsfiddle.net/wDff8 / воспроизводит ту же проблему.

Код

:

Déposez votre fichier dans ce dossier

:

span.tooltip {
  display: inline-block;
  background: #eee;
  margin-left: 20px;
  padding: 0 10px;
  color: #111;
  border-radius: 2px;
  border-top: 1px solid #bbb;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  line-height: 1.5;
  position: relative;
}

span.tooltip:before {
  content:"";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px;
  border-color: transparent #eee transparent transparent;
  left: -18px;
  top: -1px;
  z-index: 1;
}

span.tooltip:after {
  content:"";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px;
  border-color: transparent #bbb transparent transparent;
  left: -21px;
  top: -2px;
  z-index: 0;
}

body {
    font-family: Georgia;
    font-size: 12px;
    letter-spacing: 1px;
}
5
задан GG. 1 February 2012 в 10:39
поделиться