mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Script Loader: Prevent normalizing data URIs in _wp_normalize_relative_css_links().
This prevents making data URIs as in `mask-image:url('data:image/svg+xml;utf8,<svg...` relative to the WordPress installation.
Props staatic.
See #54243.
Fixes #55177.
git-svn-id: https://develop.svn.wordpress.org/trunk@52754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -236,6 +236,10 @@ class Tests_Dependencies_Styles extends WP_UnitTestCase {
|
||||
'css' => 'clip-path: url(#image1);',
|
||||
'expected' => 'clip-path: url(#image1);',
|
||||
),
|
||||
'Data URIs, shouldn\'t change' => array(
|
||||
'css' => 'img {mask-image: url(\'data:image/svg+xml;utf8,<svg></svg>\');}',
|
||||
'expected' => 'img {mask-image: url(\'data:image/svg+xml;utf8,<svg></svg>\');}',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user