Bug 25963

Summary: User agent CSS default overrides specified stylesheet
Product: WebKit Reporter: Bernhard Rosenkraenzer <bero>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: All   
Attachments:
Description Flags
test case none

Bernhard Rosenkraenzer
Reported 2009-05-22 08:51:23 PDT
In the test case I'm attaching, the margin-right value for the headline is from the user agent default style sheet for the h1 tag, even though the CSS class being loaded explicitly sets margin-right to a different value. The explicitly set value should override the default stylesheet. Verified with Safari 4 beta, Safari 3.2.1 and QtWebKit 4.5.1.
Attachments
test case (675 bytes, application/x-compressed-tar)
2009-05-22 08:51 PDT, Bernhard Rosenkraenzer
no flags
Bernhard Rosenkraenzer
Comment 1 2009-05-22 08:51:54 PDT
Created attachment 30582 [details] test case
Bernhard Rosenkraenzer
Comment 2 2009-05-22 08:56:40 PDT
Never mind, I just realized the test case is bogus, it's inheriting the margin-right (correctly) from the parent div, not actually from the default stylesheet.
Note You need to log in before you can comment on or make changes to this bug.