mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Parse -moz-alt-content as a whole content value (fixes #15726)
This commit is contained in:
parent
8cd4330b2a
commit
499e81410f
4 changed files with 37 additions and 31 deletions
|
@ -148,7 +148,7 @@ impl<T: ThreadSafeLayoutNode> ThreadSafeLayoutNodeHelpers for T {
|
|||
let style = self.as_element().unwrap().resolved_style();
|
||||
|
||||
return match style.as_ref().get_counters().content {
|
||||
content::T::Content(ref value) if !value.is_empty() => {
|
||||
content::T::Items(ref value) if !value.is_empty() => {
|
||||
TextContent::GeneratedContent((*value).clone())
|
||||
}
|
||||
_ => TextContent::GeneratedContent(vec![]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue