Bug 113391 - Reverse parsing for CSS content property with attr() and url()
Summary: Reverse parsing for CSS content property with attr() and url()
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (other bugs)
Version First Reported In: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-26 22:08 UTC by Xavier Robin
Modified: 2005-09-27 00:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Testcase (422 bytes, text/html)
2005-09-26 22:12 UTC, Xavier Robin
Details

Note You need to log in before you can comment on or make changes to this bug.
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.