On 31/12/2010 10:16 PM, Philip Taylor (Webmaster, Ret'd) wrote:


Alan Gresley wrote:

What do you inspect to happen with embed font? The validator sees
your CSS as junk. Why don't you try to validate as CSS3.

<http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Flettershop.ehclients.com%2Fcss%2Fall.css&profile=css3&usermedium=all&warning=1&lang=en>

Only one error. Cool. :-)

What the validator sees it as is not my point; what I was expecting
was a meaningful diagnostic, such as

2 Value Error : font-family Property font-family doesn't exist in
CSS level 2.1 but exists in CSS level 3

Firstly it treats this as valid CSS2.1.

  @font-face {  }

It say this is a value error.

  @font-face { font-family: ; }


So for the first block we have this,

Parse Error [: "'Titillium Text22L Bold'"; src : url('../fonts/TitilliumText22L005-webfont.eot'); src : local('O')]

Parse Error [ url('../fonts/TitilliumText22L005-webfont.woff') format('woff')]

Parse Error [ url('../fonts/TitilliumText22L005-webfont.svg#Titillium Text22L Bold') format('svg')]

Parse Error [ url('../fonts/TitilliumText22L005-webfont.otf') format('opentype'); ]

via direct input.

<http://jigsaw.w3.org/css-validator/#validate_by_input>


Since it is being parsed as CSS2.1, it is looking for syntax like the following.

font-family:"lucida grande",tahoma,verdana,arial,sans-serif;



and/or

Property src doesn't exist : src:
url('../fonts/TitilliumText22L005-webfont.eot');


If you have this via direct input.

body {
margin: 10px;
src: url('../fonts/TitilliumText22L005-webfont.eot');
padding: 20px;
}

You get this.

Property src doesn't exist : url('../fonts/TitilliumText22L005-webfont.eot') url('../fonts/TitilliumText22L005-webfont.eot')

Which is almost the same as you were seeking.


rather than the apparently arbitrary strings that the validator is
currently issuing.

Philip Taylor


It not so arbitrary since different snippets via direct input will give different errors.


--
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to