[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 171932] New: KHTML collapses white space from css content
From:       Nicholas Smethurst <nick.smethurst () gmail ! com>
Date:       2008-09-30 22:38:01
Message-ID: bug-171932-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

http://bugs.kde.org/show_bug.cgi?id=171932

           Summary: KHTML collapses white space from css content property in
                    <pre> elements by default
           Product: konqueror
           Version: 3.5
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: khtml
        AssignedTo: konq-bugs@kde.org
        ReportedBy: nick.smethurst@gmail.com


Version:            (using KDE 3.5.10)
Compiler:          gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu1) 
OS:                Linux
Installed from:    Ubuntu Packages

Same problem in both Konqueror 3.5.10 and 4.1.1.

HTML test file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <style> .cl:before { content: "     >     " } </style>
</head>
<body>
    <p><span class="cl"></span> This should collapse by default.</p>
    <pre><span class="cl"></span> This should    not    collapse by
default.</pre>
</body>
</html>

The generated content in the <pre> element should by default have its white
space conserved, as well as the white space in the <pre> element's text. With
KHTML, it is necessary to add "white-space: pre" to achieve the correct
behaviour.

The default behaviour of KHTML collapses white space from generated content
when rendered in <pre> elements. Firefox and Opera do not.

This is similar but not the same thing as bug 26326.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic