Re: CSS Validator Error

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 UTC