Generate ::before and ::after content from url() for layout2020

This commit is contained in:
Fernando Jiménez Moreno 2020-02-28 11:44:23 +01:00
parent 756cf66cd2
commit dc9a33f3a9
5 changed files with 46 additions and 6 deletions

View file

@ -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));