» in my experience...

» home | about | contact | résumé
» archives | donate | rss syndication

»
»
Space Shuttle imagery.


Communiblog Communiblog expressed as RSS 2.0
Here at IMX
Memes R' Us
freetheaudio2.jpg
SuperNova 1987A from 1994 to 2003
GarageBand

Does Safari have inheritance problems?
[ Posted by Dan on January 14, 2003 | 8 Comments ]

Here are two examples of what I think are inheritance problems in Safari. I have sent the first one to Apple's WebCore guy, Dave Hyatt, as a bug report. The second one seems to be in the same vein of inheritance problems and locality...
  1. iframe size inheritance
  2. table cell padding inheritance.
Now, I am right about the rules of inheritance and CSS styling, correct? These are bugs in the way Safari (in both revs 54 and 81) is choosing to render the page, right? In any event, many thanks to Dave Hyatt for his efforts and for publically sharing info on the development efforts of Safari.

Ironically, today Hyatt notes fixes to their table rendering code on his blog. I wonder if he's fixed the problem I've noted here.

 

Normal Guy

Can you add in screenshots of how safari handles it?

I don't have my laptop here ATM to check...

-Posted by JC on January 14, 2003 11:02 AM

Normal Guy

Done.

Also, for what it's worth, onblur events in Safari don't fire when the blur event is caused by tabbing out of a field with an unblor event defined. An example is the "Your URL" field of the comment form.

If you tab from that field to the textarea, the text for starting a link doesn't go away, but if you click somewhere in the body of the page, which blurs that text box, then the text does go away.

Safari is a beta (but a good one imho).

-Posted by Dan on January 14, 2003 11:27 AM

Normal Guy

Try it with a plain table tag instead of having the cellpadding="10" in the table tag. Use the style instead. CSS trumping HTML is iffy from what I've seen... but if you stick with pure CSS it should inherit properly.
Worth a shot anyway.

-Posted by JC on January 14, 2003 12:08 PM

Normal Guy

Good call, have a look at...

http://inmyexperience.com/padding_inheritance/alt.html

-Posted by Dan on January 14, 2003 12:19 PM

Normal Guy

Looks the same to me.... did it work and it's just our proxy server spitting old pages at me?

-Posted by JC on January 14, 2003 01:14 PM

Normal Guy

I just checked the link you posted above and it renders correctly for me in Safari -- just the same as chimera. Perhaps you need to sub-class you CSS to something like:
td .ClassName { }.

-Posted by truthintruth on January 14, 2003 03:52 PM

Normal Guy

Yeah, the alt.html works correctly, and will become my solution for a problem I've been hainv in my redesign.

It still seems to me though that the 'right' thing to do is to allow a style in a TD to override the cellpadding value assigned in the table tag. No?

-Posted by Dan on January 14, 2003 04:40 PM

Normal Guy

Well, if you're using CSS on your table cells, you should be using them on the table as a whole, not mix & matching, I suppose. I'm fairly sure I read somewhere (probably an old old book) that CSS is trumped by HTML on some things (eg for a font tag inside a span tag the font tag would overrule any font properties that were in opposition with the span)

But if it's working one way in IE (for windows, anyway) and Mozilla and another in Safari, I'd put my money on those two for having it 'right'

-Posted by JC on January 14, 2003 05:03 PM




Comment posting has been turned off because I don't have enough time and will to deal with the constant comment spamming. I'm very sorry and will fix this sometime soon (soon = before 2004 ends).

MovableType AmphetaDesk
NetNewsWire BlogTree Subscribe with Bloglines RSS Feed
Copyright © 2001 - 2003 by Daniel Kapusta