bem / bem-bl

Base BEM library
http://bem.github.com/bem-bl/
198 stars 84 forks source link

Magic around the `a` value for font-family property #659

Closed vitkarpov closed 9 years ago

vitkarpov commented 9 years ago

Hi!

It seems that such image replacement method became very popular. For instance, Nicolas Gallagher wrote about it.

There's some misunderstanding about a value for font-family property. What does it mean exactly? How browsers work with this value?

The answer is very simple: since a browser doesn't know about such font-family's value it's always serif by default.

So, why a? Let it be iloveyandex for more clear idea — it can be anything you want, there's no magic around a :)

tadatuta commented 9 years ago

@vitkarpov a was used as shortes value possible to save some bytes. is there any reason to add 11 more bytes to each project using bem-bl without any practical results?

vitkarpov commented 9 years ago

No. It's just a joke :) Thank you for clearer explanation.