mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Use the base URL to parse style attributes.
This commit is contained in:
@@ -1558,7 +1558,7 @@ impl<'a> VirtualMethods for &'a Element {
|
||||
&atom!("style") => {
|
||||
// Modifying the `style` attribute might change style.
|
||||
let doc = document_from_node(*self);
|
||||
let base_url = doc.r().url();
|
||||
let base_url = doc.r().base_url();
|
||||
let value = attr.value();
|
||||
let style = Some(parse_style_attribute(&value, &base_url));
|
||||
*self.style_attribute.borrow_mut() = style;
|
||||
|
||||
Reference in New Issue
Block a user