3 ms·
The garret: glen; CSS bug, circa 2006 or 2007. Starting out with a bunch of existing CSS, a developer added 2 new properties somewhere in the middle, but forgo
by web007 10y ago
The garret: glen; CSS bug, circa 2006 or 2007.
Starting out with a bunch of existing CSS, a developer added 2 new properties somewhere in the middle, but forgot a trailing semi between them. Reloading the page showed the first change, but not the second. He tried ten different variants of the second property name, spelling, values, etc. and nothing was showing up. He added another property before the broken one to help debug, and it started working. He then tried several variants on that to see if it was some arcane ordering bug, and eventually ruled that out by using two developers' names for property:value.
Because all of the intermediary versions included a semi, and because the first property allowed some kind of extended content that was ignored, it took half a dozen developers looking at the "weird bug" before someone noticed the missing semi on the first property.