0

I've created a page where I use this type of styling:

nav ul li:before {
  content: " / ";
}
nav ul li:last-child:before {
  content: "";
}

Where most of the time, I want a "/" before the li elements except on the last one.

The problem is that in Chrome (only as far as I know), I sometimes get a little flicker of the "/", even though it's not supposed to be there. It shows up for a moment and then disappears.

Anyone else seen this or worked around it?

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
jaketrent
  • 1,173
  • 11
  • 25

2 Answers2

0

I'd file a bug report against Webkit (if you can reproduce in a webkit nightly) or Chrome if it's only in Chrome.

Rich Bradshaw
  • 71,795
  • 44
  • 182
  • 241
0

try

nav ul li:not(:last-child):before {
  content: " / ";
}
cmplieger
  • 7,155
  • 15
  • 55
  • 83