Closed
Bug 211797
Opened 21 years ago
Closed 21 years ago
RFC 2397 data:// URL don't work in CSS
Categories
(Core :: Networking, defect)
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.
Reporter | ||
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
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
Comment 4•21 years ago
|
||
Additionally, there is no '//' after the 'data:', unless that is part of the mime type.
Reporter | ||
Comment 5•21 years ago
|
||
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 → ---
Reporter | ||
Comment 6•21 years ago
|
||
Attachment #127085 -
Attachment is obsolete: true
Reporter | ||
Updated•21 years ago
|
Attachment #135770 -
Attachment mime type: text/html → application/xhtml+xml
Comment 7•21 years ago
|
||
I see four orange icons in your testcase with 2003-12-26. Reporter, is this bug still valid?
Comment 8•21 years ago
|
||
Yeah, this worksforme.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Updated•20 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 9•20 years ago
|
||
It was a syntax issue.
You need to log in
before you can comment on or make changes to this bug.
Description
•