[WebKit-devel] [Bug 296645] New: webkit forces the body CSS background to that of the current theme

Marcus Harrison marcus at harrisonland.co.uk
Fri Mar 23 22:35:08 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=296645

            Bug ID: 296645
          Severity: normal
           Version: 1.2.0
          Priority: NOR
          Assignee: webkit-devel at kde.org
           Summary: webkit forces the body CSS background to that of the
                    current theme
    Classification: Unclassified
                OS: Linux
          Reporter: marcus at harrisonland.co.uk
          Hardware: Compiled Sources
            Status: UNCONFIRMED
         Component: general
           Product: kwebkitpart

Given a website with this simple CSS:

* {background-color: transparent;}
body {background-color: #ffffff;
color: #000000;}

The font becomes unreadable under dark themes (I tested with Obsidian Coast)
because the background colour of the body element is forced to that of the
current Qt/KDE widget theme colour. I have observed that if the above CSS is
changed to:

* {background-color: transparent;}
body {background-color: #ffffff!important;
color: #000000;}

the background colour is correctly set to the colour given in the stylesheet.
However, this should not be necessary to override the background colour set by
the browser.

I have observed this in both Konqueror and Rekonq. This is a major limiter in
the use of dark themes and breaks many websites.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the WebKit-devel mailing list