Repository navigation
Commit 6d13811
committed
KSES: Allow
CSS filters can accept `url()` as a reference to an SVG filter element:
{{{
filter: url( file.svg#filter-element-id );
}}}
This commit allows for that syntax to be used in inline CSS.
Original PR from Gutenberg repository:
* [WordPress/gutenberg#48281 #48281 Duotone: Use the style engine to generate CSS for Duotone]
References:
* [https://developer.mozilla.org/en-US/docs/Web/CSS/filter MDN Web Docs: filter()]
* [https://developer.mozilla.org/en-US/docs/Web/CSS/url MDN Web Docs: url()]
Follow-up to [44136], [52049].
Props scruffian, jeryj, ironprogrammer, azaozz, hellofromTonya, SergeyBiryukov.
Fixes #57780.
git-svn-id: https://develop.svn.wordpress.org/trunk@55564 602fd350-edb4-49c9-b593-d223f7449a82filter property to accept a URL in safecss_filter_attr().1 parent a387dee commit 6d13811
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2279 | 2279 | | |
2280 | 2280 | | |
2281 | 2281 | | |
| 2282 | + | |
2282 | 2283 | | |
2283 | 2284 | | |
2284 | 2285 | | |
| |||
2466 | 2467 | | |
2467 | 2468 | | |
2468 | 2469 | | |
| 2470 | + | |
2469 | 2471 | | |
2470 | 2472 | | |
2471 | 2473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
1319 | 1324 | | |
1320 | 1325 | | |
1321 | 1326 | | |
| |||
0 commit comments