Version: 3.5.1 (using KDE 3.5.1, compiled sources) Compiler: Target: i586-suse-linux OS: Linux (i686) release 2.6.13-15.7-smp please try: <span style='background-color:black;color:white'> abc </span> The last space after 'abc' will be discarded...(not the header one) <span style='background-color:black;color:white'> abc </span> renders properly. As for the gmail/konqueror crashes reported 3 days ago we will comply with the Goggle's answer 'Please use a supported browser'... Jerome - Phnom Penh
Confirmed on r581764. Note that adding some text after the </span> causes the trailing space to be shown.
Created attachment 17888 [details] testcase
khtml 3.5.6 discards both whitespaces, as does Gecko 1.8. IE6/7 and Opera 9 discards leading space. Results are not dependant of doctype. I have no idea what's expected here.
Tested with Konqueror 4 (trunk rev. 793966). FF 3.0b5, Opera 9.27. Konqueror & FF remove both spaces and Opera just removes the first one. Quote from http://www.w3.org/TR/html401/struct/text.html#h-9.1 : «In order to avoid problems with SGML line break rules and inconsistencies among extant implementations, authors should not rely on user agents to render white space immediately after a start tag or immediately before an end tag.»
This is not really a bug but a problem with the spec.