SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Netscape 7 ignoring display: none ?

    an interesting issue i'm having with Netscape 7. in the header on the test page http://www.salford.ac.uk/test.php i have labels for the two form elements. as they're mostly there for accessibility, and not for "visual consumption", i've set the style so that they shouldn't display with the following

    Code:
    #header label {
    	display: none;	
    	color: #fff; 
    	font-weight: bold;
    }
    (where header is the id of the div containing the...aeh...header)

    now, this works in IE5.5, phoenix 0.5, mozilla 1.3b and, i think, opera 7...but Netscape 7 happily displays these as if the display: none wasn't there.

    the weird thing is, N7 sees the color and font-weight attributes i added as a "visual fix"...so it does understand that #header label should affect theses particular elements...so why is it just ignoring the display attribute ?
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  2. #2
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    N7 is effectively moz 1.0.x, so it's possible that you're seeing a bug that has since been fixed in later version of Moz (it does happen occasionally...)

  3. #3
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    aha

    http://bugzilla.mozilla.org/show_bug.cgi?id=96813

    If I grok the mozilla/netscape development tree correctly, this should be fixed in NN7.02 and Moz1.1 Alpha onwards.

    I think it managed to miss both moz 1.0 and NN7.01 by a whisker.

  4. #4
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you're a star gavin ! so i can sleep easy now, knowing it's not due to something major i overlooked...(although it's annoying that this means my planned new, more standards compliant header for the main salford.ac.uk site will display "weirdly" on the latest netscape build...)
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  5. #5
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A quick skim of the other bugs I read before found that one (it caused some peripheral fallout, and had a few duplicates/near misses) implies that a "!important" might get it to pay attention, but I'm not in a position to test that.

  6. #6
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry...by "latest build" i meant "latest version in userland". i'm sure the !important flag does mean that they'll fix it soon. heh, and to think that i just got my boss to ditch netscape 4.72 in favour of 7, AND i told him the new site designs will have so many benefits because of standards compliance...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  7. #7
    killall -9 lusers
    Join Date
    Oct 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's why you should never tell your boss anything. Always let them think it was their idea. :-)

  8. #8
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah. I meant that putting a "!important" in your CSS, like this:
    Code:
    display: none !important
    might get N7 to pay attention to what you're asking it to do.

    See http://www.w3.org/TR/CSS2/cascade.html#important-rules for more.

    I think the bug is already fixed in the version of N7 currently available for download. It definitely IS fixed in the version of Moz we're both using, as you already noticed
    Last edited by blufive; Mar 7, 2003 at 13:35.

  9. #9
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'm really showing that i'm still new at this, eh ?
    ok, when in hole, stop digging...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •