Bug 1965 - GtkHtml2 - CSS background colour ignored
Summary: GtkHtml2 - CSS background colour ignored
Status: RESOLVED WONTFIX
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/Gtkhtml2 Viewer (show other bugs)
Version: 3.5.0
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2009-07-27 13:50 UTC by Tarlika Elisabeth Schmitz
Modified: 2013-04-13 09:57 UTC (History)
0 users

See Also:


Attachments
test case (1.93 KB, text/html)
2009-07-27 13:50 UTC, Tarlika Elisabeth Schmitz
no flags Details

Description Tarlika Elisabeth Schmitz 2009-07-27 13:50:41 UTC
Created attachment 702 [details]
test case

The background colour defined for a class is ignored if the style is applied to a <span> tag with an added <em>.

If a class with background colour is associated with a <div>, the background colour is honoured regardless whether <em> is added or not.

I illustrate this with the following examples:

.S1410 {color: #FFDD00; background-color: #882222;}

<span class="S1410"><em>Christmas Day Bank Holiday </em></span><br>
S1410 bg colour ignored

<span class="S1410">Christmas Day Bank Holiday </span><br>
S1410 bg colour honoured

<span class="S1410"><em>Christmas Day Bank Holiday </em></span><br>
moved bg-colour declaration from S1410 to em: em bg colour honoured

<div class="content">
<span class="S1150"><em>Reminders for 25th December 2009</em></span><br>
content bg colour honoured


The classes referred to by above examples can be found in attached test case.

CSS and HTML of test case have been validated with the respective w3c validators. Firefox/Thunderbird display the S1410 bg colour with and without <em>.
Comment 1 Tarlika Elisabeth Schmitz 2009-08-12 01:24:34 UTC
I should have added the definition for em:

em {
    font-style: normal;
    font-weight: bold;
}
Comment 2 Tarlika Elisabeth Schmitz 2009-08-12 01:26:41 UTC
If the class is set to block display, the background colour is displayed:

.S1410 {color: #FFDD00; background-color: #882222;display: block;}

<span class="S1410"><em>Christmas Day Bank Holiday </em></span><br>
S1410 bg colour honoured
Comment 3 Paul 2013-04-13 09:57:50 UTC
the gtkhtml2 plugin has now been dropped and superseded by the Fancy plugin

Note You need to log in before you can comment on or make changes to this bug.