aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-02-19 05:25:58 -0500
committerbors-servo <release+servo@mozilla.com>2014-02-19 05:25:58 -0500
commitdedecec0e38a3130084fc3fd9e3e0905e262bb13 (patch)
treead070df96a1a874cf7df22d9c8ac34124366d9e7 /src/components/script/dom
parent20bbf6a8596e53c7a27f2489874b81436afb4e6c (diff)
parent7b56e75adb0002a3bd001aa61b55249c938fc60e (diff)
downloadservo-dedecec0e38a3130084fc3fd9e3e0905e262bb13.tar.gz
servo-dedecec0e38a3130084fc3fd9e3e0905e262bb13.zip
auto merge of #1631 : recrack/servo/background-image, r=SimonSapin
for #777 #800 - support(http://www.w3.org/TR/CSS21/colors.html#background) - background: url(foo.png) - background: url(data:image/png;base64...) - background-image: url(foo.png) - background-image: url(data:image/png;base64...) - not support(http://www.w3.org/TR/css3-background/)
Diffstat (limited to 'src/components/script/dom')
-rw-r--r--src/components/script/dom/element.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/script/dom/element.rs b/src/components/script/dom/element.rs
index 9ffb17c3254..2eb0553f2f6 100644
--- a/src/components/script/dom/element.rs
+++ b/src/components/script/dom/element.rs
@@ -221,7 +221,9 @@ impl Element {
match local_name.as_slice() {
"style" => {
- self.style_attribute = Some(style::parse_style_attribute(value))
+ let doc = self.node.owner_doc();
+ let base_url = doc.document().url.clone();
+ self.style_attribute = Some(style::parse_style_attribute(value, &base_url))
}
"id" if abstract_self.is_in_doc() => {
// XXX: this dual declaration are workaround to avoid the compile error: