Bug 161164 - [testcase] Konqueror ignoring stylesheets of OpenCms-generated pages
Summary: [testcase] Konqueror ignoring stylesheets of OpenCms-generated pages
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-22 17:52 UTC by Wolfgang Jeltsch
Modified: 2013-11-30 23:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
testcase_161164.html (352 bytes, text/html)
2008-06-02 23:28 UTC, Florian Reinhard
Details
testcase_161164.css (109 bytes, text/html)
2008-06-02 23:29 UTC, Florian Reinhard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Jeltsch 2008-04-22 17:52:37 UTC
Version:           3.5.5 (using 3.5.5, Debian Package 4:3.5.5a.dfsg.1-8etch1 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.18-6-686

Konqueror seems to ignore the stylesheets of OpenCms-generated pages.  You can see this by visiting <http://demo.opencms.org/de/index.html>.  Surprisingly, the OpenCms homepage under <http://www.opencms.org/> (which is most likely also made with OpenCms) seems to work okay.
Comment 1 Florian Reinhard 2008-06-02 23:27:34 UTC
i created a testcase for that and found out that konqueror igroners the complete stylesheet if there is one or more newlines before a "@charset "UTF-8";". This is w3c conform behaviour, see http://tinyurl.com/5sabqk 
Comment 2 Florian Reinhard 2008-06-02 23:28:39 UTC
Created attachment 25073 [details]
testcase_161164.html
Comment 3 Florian Reinhard 2008-06-02 23:29:24 UTC
Created attachment 25074 [details]
testcase_161164.css
Comment 4 Florian Reinhard 2008-06-02 23:30:20 UTC
forgot to mention that i checked on 3.5.8 and svn trunk 815560 (~4.1-beta)
Comment 5 Jaime Torres 2008-07-12 21:38:23 UTC
Confirmed in svn trunk r828814. khtml should ignore only the @charset, not the whole css.
http://www.w3.org/TR/CSS21/syndata.html says
User agents must ignore any @charset rule not at the beginning of the style sheet.
Comment 6 Andrea Iacovitti 2013-11-30 23:29:01 UTC
Testcase at comment #2 is wrong, stylesheet link should be changed from:
<link href="testcase_161164_files/testcase_161164.html" rel="stylesheet" type="text/css">
to:
<link href="testcase_161164.css" rel="stylesheet" type="text/css">
where testcase_161164.css is the file attached at comment #3.

That said i can not reproduce using KDE 4.11.4