Bug 113391

Summary: Reverse parsing for CSS content property with attr() and url()
Product: [Applications] konqueror Reporter: Xavier Robin <bugmail-kde>
Component: khtmlAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Testcase

Description Xavier Robin 2005-09-26 22:08:24 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Mandriva RPMs
OS:                Linux

The content CSS 2.1 property has an odd behaviour.

A declaration containing "content: attr(...) url(...);" is displayed in reverse order, url (image) being displayed before the attr content. I expected the attr being displayed first, as it is first in the declaration, which is the behaviour of Opera and Mozilla.

I noted that the last version of Safari is also affected by this bug.

I'm going to add a minimal testcase soon.
Comment 1 Xavier Robin 2005-09-26 22:12:03 UTC
Created attachment 12720 [details]
Testcase

In this test, a paragraph with some text has the id #MyID.
In :after I have the following property : 
content: " " attr(id) " "
url(http://home.etu.unige.ch/~robin0/styles/tbird.png);

" " are here only for spacing and can be suppressed. The attr(id) occurs before
the url(...) but is actually displayed after it.
Comment 2 Maksim Orlovich 2005-09-26 23:01:35 UTC
I see the text "MyID" before the image here, 3.5 development branch
Comment 3 Allan Sandfeld 2005-09-27 00:23:44 UTC
I see MyID before the image as well.