HighDots Forums  

validator warning

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss validator warning in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nije Nego
 
Posts: n/a

Default validator warning - 08-09-2006 , 05:23 PM







Does it make sense for w3c validator to issue warning when style is coded

{ padding: 0 0 0 10%; }

It reads 0 as absolute.

--
buy, bought, bye

Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 09:20 AM






Nije Nego wrote:
Quote:
Does it make sense for w3c validator to issue warning when style is coded

{ padding: 0 0 0 10%; }
No, so your flaw must be somewhere else.

Quote:
It reads 0 as absolute.
What does that mean?


Reply With Quote
  #3  
Old   
Nije Nego
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 01:28 PM



On Thu, 10 Aug 2006 10:20:57 -0400, Harlan Messinger wrote:

Quote:
Nije Nego wrote:
Does it make sense for w3c validator to issue warning when style is coded

{ padding: 0 0 0 10%; }
W3C validator issues a warning:
Line : 150 (Level : 2) You have some absolute and relative lengths in
padding. This is not a robust style sheet.

Quote:
No, so your flaw must be somewhere else.
No, you can check at http://bruno-s.net
at line 150 you'd find
margin: 0 10% 0 0;

Quote:
It reads 0 as absolute.

What does that mean?
It seams that w3c reads 0 as px in this combination. I find it strange.
When I change
margin: 0 10% 0 0;
to
margin: 0% 10% 0% %0;
warning dissapears.

--
buy, bought, bye


Reply With Quote
  #4  
Old   
Jim Moe
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 02:19 PM



Nije Nego wrote:
Quote:
It reads 0 as absolute.

What does that mean?

It seams that w3c reads 0 as px in this combination. I find it strange.
When I change
margin: 0 10% 0 0;
to
margin: 0% 10% 0% %0;
warning dissapears.

The validator apparently does not test for zero values when it scans for
uniform length units. You could send a query to the W3C asking about this
(email link at bottom of Validation page).

BTW: The spelling on the site is rather poor, for example, "Tablelles"
should be "Table-less."
Is English is a second language? I do not, for instance, understand what
"...(recently trough Netvibes ..." means.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #5  
Old   
Nije Nego
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 03:03 PM



On Thu, 10 Aug 2006 12:19:39 -0700, Jim Moe wrote:

Quote:
Nije Nego wrote:

It reads 0 as absolute.

What does that mean?

It seams that w3c reads 0 as px in this combination. I find it strange.
When I change
margin: 0 10% 0 0;
to
margin: 0% 10% 0% %0;
warning dissapears.

The validator apparently does not test for zero values when it scans for
uniform length units. You could send a query to the W3C asking about this
(email link at bottom of Validation page).
That would most certainly be a vaste of time.

Quote:
BTW: The spelling on the site is rather poor, for example, "Tablelles"
should be "Table-less."
Using google Tableless (2.660.000) wins over Table-less (2.570.000).

Quote:
Is English is a second language?
I shall read your question as a positive. I thought it would be more
obvious.

Quote:
I do not, for instance, understand what
"...(recently trough Netvibes ..." means.
Misspelled - should be (already is) "... through Netvibes ..." which is my
curent home page.

--
buy, bought, bye


Reply With Quote
  #6  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 03:03 PM



Nije Nego wrote:
Quote:
On Thu, 10 Aug 2006 10:20:57 -0400, Harlan Messinger wrote:

Nije Nego wrote:
Does it make sense for w3c validator to issue warning when style is coded

{ padding: 0 0 0 10%; }

W3C validator issues a warning:
Line : 150 (Level : 2) You have some absolute and relative lengths in
padding. This is not a robust style sheet.

No, so your flaw must be somewhere else.

No, you can check at http://bruno-s.net
at line 150 you'd find
margin: 0 10% 0 0;
I see--I missed that it was a warning rather than a validation error. So
it's valid, and now they've built in a suggestion-maker too, which is
useful in the same way that Microsoft Word's grammar check is
useful--sometimes it's right.

Quote:
It reads 0 as absolute.
What does that mean?

It seams that w3c reads 0 as px in this combination. I find it strange.
When I change
margin: 0 10% 0 0;
to
margin: 0% 10% 0% %0;
warning dissapears.
OK, it's just being dumb. If it's going to suggest that the numbers be
all absolute or all relative (and I'm not sure I see the rationale for
that), it needs to recognize 0 as both absolute and relative).


Reply With Quote
  #7  
Old   
Nije Nego
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 03:27 PM



On Thu, 10 Aug 2006 16:03:36 -0400, Harlan Messinger wrote:

Quote:
If it's going to suggest that the numbers be
all absolute or all relative (and I'm not sure I see the rationale for
that),
It is not sugessting anything for the numbers, it is using pt, px, (as
absolute) and %, em (as relative).

0 (without units) should be neutral (disregarded from validation).

--
buy, bought, bye


Reply With Quote
  #8  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 04:22 PM



Nije Nego" <"nije\"nego <"nije\"nego"@net.hr> scripsit:

Quote:
The validator apparently does not test for zero values when it
scans for uniform length units. You could send a query to the W3C
asking about this (email link at bottom of Validation page).

That would most certainly be a vaste of time.
So you think it would more futile to send your proposal to the announced
feedback address of the W3C than to post a question on it to a Usenet group?
Maybe someone at the W3C will do something if you mail them, maybe not; but
at least you would have made a real try.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/



Reply With Quote
  #9  
Old   
Nije Nego
 
Posts: n/a

Default Re: validator warning - 08-10-2006 , 05:16 PM



On Fri, 11 Aug 2006 00:22:53 +0300, Jukka K. Korpela wrote:

Quote:
Nije Nego" <"nije\"nego <"nije\"nego"@net.hr> scripsit:

The validator apparently does not test for zero values when it
scans for uniform length units. You could send a query to the W3C
asking about this (email link at bottom of Validation page).

That would most certainly be a vaste of time.

So you think it would more futile to send your proposal to the announced
feedback address of the W3C than to post a question on it to a Usenet group?
Maybe someone at the W3C will do something if you mail them, maybe not; but
at least you would have made a real try.
I find usenet much more helpfull, even in a read only mode, since there is
more knowledge here there anywhere else.
Yours included.

--
buy, bought, bye


Reply With Quote
  #10  
Old   
Nije Nego
 
Posts: n/a

Default Re: validator warning - 08-11-2006 , 10:09 AM



On Thu, 10 Aug 2006 23:27:01 +0100, Toby Inkster wrote:

Quote:
Nije Nego wrote:
Jim Moe wrote:

BTW: The spelling on the site is rather poor, for example, "Tablelles"
should be "Table-less."

Using google Tableless (2.660.000) wins over Table-less (2.570.000).

But only 224 for "Tablelles".
Noted and changed. Thanks.

--
buy, bought, bye


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.