mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Generate ::before and ::after content from url() for layout2020
This commit is contained in:
parent
756cf66cd2
commit
dc9a33f3a9
5 changed files with 46 additions and 6 deletions
|
@ -134,7 +134,7 @@ impl Parse for Content {
|
|||
let mut content = vec![];
|
||||
let mut has_alt_content = false;
|
||||
loop {
|
||||
#[cfg(feature = "gecko")]
|
||||
#[cfg(any(feature = "gecko", feature = "servo-layout-2020"))]
|
||||
{
|
||||
if let Ok(url) = input.try(|i| SpecifiedImageUrl::parse(context, i)) {
|
||||
content.push(generics::ContentItem::Url(url));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue