Bug 1965

Summary: GtkHtml2 - CSS background colour ignored
Product: Claws Mail (GTK 2) Reporter: Tarlika Elisabeth Schmitz <claws-mail>
Component: Plugins/Gtkhtml2 ViewerAssignee: users
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: P3    
Version: 3.5.0   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
test case none

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