Merge pull request #160 from snshn/more-css-image-url-detection-props

Treat url()'s found in @counter-style rules as images
This commit is contained in:
Sunshine 2020-04-10 07:28:55 -04:00 committed by GitHub
commit ab601c3830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,9 +5,9 @@ use std::collections::HashMap;
use crate::utils::{data_to_data_url, get_url_fragment, resolve_url, retrieve_asset};
const CSS_PROPS_WITH_IMAGE_URLS: &[&str] = &[
// Universal
"background",
"background-image",
"border",
"border-image",
"border-image-source",
"content",
@ -16,6 +16,13 @@ const CSS_PROPS_WITH_IMAGE_URLS: &[&str] = &[
"list-style-image",
"mask",
"mask-image",
// Specific to @counter-style
"additive-symbols",
"negative",
"pad",
"prefix",
"suffix",
"symbols",
];
pub fn is_image_url_prop(prop_name: &str) -> bool {