Bug 13817 - CSS: Innermost style should take precedence
Summary: CSS: Innermost style should take precedence
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://just1gb.googlepages.com/float_...
Depends on:
Reported: 2007-05-22 11:07 PDT by Sridhar Gurivireddy
Modified: 2007-05-22 14:14 PDT (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Sridhar Gurivireddy 2007-05-22 11:07:09 PDT
When CSS style is applied on elements, the style on innermost element should take precedence over the style on outer elements

<div style="xxx">
 <h1 style="yyy"> </h1>

If style YYY conflicts with XXX, YYY should take precedence, like in IE and firefox
Comment 1 David Kilzer (:ddkilzer) 2007-05-22 11:17:21 PDT
Thanks for the bug report, Sridhar!  Could you give a specific example where this happens and does not work?

Have you tried a WebKit nightly build?  http://nightly.webkit.org/

Comment 2 Sridhar Gurivireddy 2007-05-22 11:32:33 PDT
URL: http://just1gb.googlepages.com/float_right.html
Comment 3 Dave Hyatt 2007-05-22 14:14:07 PDT
This bug is invalid.  The outer float incorrectly does not shrink to fit its contents in Firefox 2 and WinIE.  This bug has since been fixed in Firefox 3 (if you download Gran Paradiso Alpha 4 you can see that Firefox 3 behaves like Safari now).