stylo: URL is incorrectly resolved when it is from a stylesheet loaded via @import

NEW
Assigned to

Status

()

Core
CSS Parsing and Computation
P1
normal
3 months ago
20 days ago

People

(Reporter: xidorn, Assigned: xidorn)

Tracking

(Blocks: 2 bugs)

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox53 affected)

Details

Having the following code in "/test.html":
<!DOCTYPE html>
<style>
@import url(res/test.css);
</style>
<div id="test></div>

and the following code in "/res/test.css":
#test { background-image: url(a.png); }

The background-image of #test is resolved to "/a.png" rather than the expected result "/res/a.png".

(This is a failure revealed by layout/style/test/test_bug397427.html, although that test is meant to check effect of stylesheet redirection.)
This looks baseURI-related. Xidorn is looking at similar stuff in bug 1343964.
Assignee: nobody → xidorn+moz
Priority: -- → P1
Blocks: 1243581
You need to log in before you can comment on or make changes to this bug.