Closed Bug 211797 Opened 21 years ago Closed 21 years ago

RFC 2397 data:// URL don't work in CSS

Categories

(Core :: Networking, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: pierre.thierry, Assigned: darin.moz)

References

()

Details

Attachments

(1 file, 1 obsolete file)

2.74 KB, application/xhtml+xml
Details
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.3.1) Gecko/20030618 Debian/1.3.1-3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.3.1) Gecko/20030618 Debian/1.3.1-3

When a data:// URL is used in a Cascading Style Sheet, e.g. for
list-style-image, it doesn't show anything.

Reproducible: Always

Steps to Reproduce:
1. Put a data:// URL in a list-style-image property
2. Open the page

Actual Results:  
With a list-image-style property, the default list glyph is shown, with a
content property, nothing appear.

Expected Results:  
The list glyph should be replaced by the image, and the generated content should
consist of the image.
Attached file Testcase (obsolete) —
This is because you have line-breaks in the data URL's string.  If you take out
the linebreaks it works fine.  Newlines within a string have to be escaped.  See
bug 171071 and http://www.w3.org/TR/CSS21/syndata.html#tokenization

*** This bug has been marked as a duplicate of 171071 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
			li {list-style-image:
url("data://image/gif;base64,R0lGODlhEAAOAOYAAP/yE//wFf/aEP/fE//eFNy4
DtW0EP/QE//LENysDP/FE//BDerQh/+5ENbCjv+zCv+4Ef+vD/+yEMqGB9GLCP+f

VERIFIED/dupe.

I've mailed dbaron for a clarification of the specificity of this issue, is it
CSS-only? I think it should work in HTML, but don't have time to test right now.
Status: RESOLVED → VERIFIED
Additionally, there is no '//' after the 'data:', unless that is part of the
mime type.
After verification, there still remain some problems: the escaped multiline data
URL works perfectly within the CSS, but not with the src attribute of an img
element...
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
Attached file Corrected testcase
Attachment #127085 - Attachment is obsolete: true
Attachment #135770 - Attachment mime type: text/html → application/xhtml+xml
I see four orange icons in your testcase with 2003-12-26.
Reporter, is this bug still valid?
Yeah, this worksforme.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
It was a syntax issue.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: