Bug 13817

Summary: CSS: Innermost style should take precedence
Product: WebKit Reporter: Sridhar Gurivireddy <just1gb>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: PC   
OS: OS X 10.4   
URL: http://just1gb.googlepages.com/float_right.html

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

e.g
<div style="xxx">
 <h1 style="yyy"> </h1>
</div>

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).