Bug 25963 - User agent CSS default overrides specified stylesheet
Summary: User agent CSS default overrides specified stylesheet
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 08:51 PDT by Bernhard Rosenkraenzer
Modified: 2009-05-22 08:56 PDT (History)
0 users

See Also:


Attachments
test case (675 bytes, application/x-compressed-tar)
2009-05-22 08:51 PDT, Bernhard Rosenkraenzer
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 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.
Comment 1 Bernhard Rosenkraenzer 2009-05-22 08:51:54 PDT
Created attachment 30582 [details]
test case
Comment 2 Bernhard Rosenkraenzer 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.