Closed Bug 773825 Opened 12 years ago Closed 5 years ago

resolving relative urls in style attribute depends on relative order of xml:base and style attrs

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: fantasai.bugs, Assigned: jkt)

References

()

Details

Attachments

(1 file)

1.47 KB, application/xhtml+xml
Details
Attached file testcase
If I understand correctly, these two should be processed the same way:
  <p style="background-image: url(swatch-lime.png)" xml:base="../">
  <p xml:base="../" style="background-image: url(swatch-lime.png)">

However only the second one works in Gecko.
Basically, we don't handle dynamic changes to xml:base in any sort of useful way.... and we parse the style attribute eagerly.  We could "fix" the latter, but the former would remain.  And similar for <base>, of course.

Imho we should simply drop xml:base support, btw.
If we want to do that, we probably want to get it dropped from the HTML5 spec, too. (Fwiw, both us and Opera support xml:base, just not on style attributes. I haven't checked IE.)
This test is also:
http://test.csswg.org/suites/css-style-attr/nightly-unstable/xhtml1/style-attr-urls-003.xht

(In reply to Boris Zbarsky (:bz) from comment #1)
> Basically, we don't handle dynamic changes to xml:base in any sort of useful
> way.... 

This is bug 303478.
Depends on: 903372
Marking WONTFIX as Bug 903372 removed support for xml:base. Even if it is reopened, I don't think we intent to continue support for this feature.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Assignee: nobody → jkt
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: