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

Treat url()'s found in @counter-style rules as images
pull/162/head
Sunshine 4 years ago committed by GitHub
commit ab601c3830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save