W3C home > Mailing lists > Public > www-validator-css@w3.org > June 2012

Re: CSS Validator Error

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 25 Jun 2012 00:05:46 +0300
Message-ID: <4FE7812A.1040706@cs.tut.fi>
To: Francine Brady <francine.brady@gmail.com>
CC: www-validator-css@w3.org
2012-06-22 17:35, Francine Brady wrote:

> I received the following error:
> Value Error : font
> <http://jigsaw.w3.org/css-validator/nullfonts.html#propdef-font> / is
> not a font-family value : 12px / 14px arial,sans-serif

This is a known bug, being fixed, see
http://lists.w3.org/Archives/Public/www-validator-css/2012Jun/0001.html

> If I change the css to:
[...]
>      font: 12px arial, sans-serif;
>      line-height: 14px;
[...]
> the css validates.

Yes, this circumvents the bug. It's also cleaner CSS code, if you ask 
me. (It's rather illogical to bundle line-height with font settings.)

> I looked up the CSS Level 3 spec and as I understand it using
> font-size/line-height is still valid. Is this in fact a valid way of
> writing the css.

Yes, it is.

Yucca
Received on Sunday, 24 June 2012 21:06:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:29 GMT