mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
Use the base URL to parse style attributes.
This commit is contained in:
parent
7f2b21c06e
commit
bd31b51a87
2 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[style-attr-urls-002.htm]
|
||||
type: reftest
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue