[wp-trac] [WordPress Trac] #54922: Normalizing CSS also catches CSS IDs instead of only URLs
WordPress Trac
noreply at wordpress.org
Wed Jan 26 13:44:16 UTC 2022
#54922: Normalizing CSS also catches CSS IDs instead of only URLs
---------------------------+-----------------------------
Reporter: mahype | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 5.9
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
The function _wp_normalize_relative_css_links which was introduced in
WordPress 5.9.0 does not only preg matching urls, it also matches HTML
ids.
The CSS property
clip-path: url(#image1);
will be replaced by
clip-path: url(/relative_url/#image1);
The clip path wont work anymore after this replacement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54922>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list