Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 8th, 2006, 02:05 AM
wassa
Guest
 
Posts: n/a
Default Explicit declaration for display property

I get different results for

div.classname { display:; }

and

div.classname { display:block; }

Bug?

  #2  
Old August 8th, 2006, 02:15 AM
Beauregard T. Shagnasty
Guest
 
Posts: n/a
Default Re: Explicit declaration for display property

wassa wrote:
Quote:
I get different results for
>
div.classname { display:; }
...which is an error.
Quote:
and
>
div.classname { display:block; }
>
Bug?
No. Different browsers handle errors differently, so if you present an
error, well ... all bets are off.

--
-bts
-Warning: I brake for lawn deer
  #3  
Old August 8th, 2006, 02:55 AM
wassa
Guest
 
Posts: n/a
Default Re: Explicit declaration for display property


Beauregard T. Shagnasty wrote:
Quote:
wassa wrote:
>
Quote:
I get different results for

div.classname { display:; }
>
..which is an error.
>
Quote:
and

div.classname { display:block; }

Bug?
>
No. Different browsers handle errors differently, so if you present an
error, well ... all bets are off.
>
OK then how do you explain different behaviours for

div.classname { }

and

div.classname { display:block; }

  #4  
Old August 8th, 2006, 03:25 AM
Chris F.A. Johnson
Guest
 
Posts: n/a
Default Re: Explicit declaration for display property

On 2006-08-08, wassa wrote:
Quote:
>
Beauregard T. Shagnasty wrote:
Quote:
>wassa wrote:
>>
Quote:
I get different results for
>
div.classname { display:; }
>>
>..which is an error.
>>
Quote:
and
>
div.classname { display:block; }
>
Bug?
>>
>No. Different browsers handle errors differently, so if you present an
>error, well ... all bets are off.
>>
>
OK then how do you explain different behaviours for
>
div.classname { }
>
and
>
div.classname { display:block; }
In what context and what browser? Please provide a URL.


--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
  #5  
Old August 8th, 2006, 11:15 AM
Andy Dingley
Guest
 
Posts: n/a
Default Re: Explicit declaration for display property


wassa wrote:
Quote:
OK then how do you explain different behaviours for
div.classname { }
and
div.classname { display:block; }
In the simple, general case you don't get different behaviours for
these. <divalready has display:block; as a default.

If you're seeing different behaviours, then we can only assume that you
have something weird going on ( Another rule of div { display:inline;
} would do it). So post a URL to your example, then we can all see
what's going on.

  #6  
Old August 8th, 2006, 01:35 PM
Harlan Messinger
Guest
 
Posts: n/a
Default Re: Explicit declaration for display property

wassa wrote:
Quote:
OK then how do you explain different behaviours for
>
div.classname { }
>
and
>
div.classname { display:block; }
Quick, tell me how many fingers I'm holding up.

Psychic ... powers ... not ... functioning ....

WHAT behaviors? WHAT does your code look like? WHAT browser?
  #7  
Old August 8th, 2006, 08:45 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: Explicit declaration for display property

Beauregard T. Shagnasty <a.nony.mous@example.invalidscripsit:
Quote:
Different browsers handle errors differently, so if you present an
error, well ... all bets are off.
Perhaps, but by CSS specifications, browsers are required to follow certain
rules in error processing. In particular,
div.classname { display:; }
shall be ignored as malformed.

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

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles