mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Support base_url in stylesheet
This commit is contained in:
parent
a12608d2e4
commit
7b56e75adb
5 changed files with 133 additions and 26 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue