fix(anatomy): url() locality skips CSS whitespace only (security audit R3 pass 2)
This commit is contained in:
1 parent
157c854ed1
commit
23895b9351
6 files changed
+90
-10
No files matched your search
@@ -42,6 +42,10 @@ fn declared(file: &str) -> Option<Value> {
|
||||
// stripped, nothing else); the TS trimmed JavaScript spaces (security audit R3).
|
||||
"href-unicode-space.svg" => json!({ "removed": ["use@href", "use@xlink:href"],
|
||||
"strip_unicode_spaced_refs": true }),
|
||||
// C3 references: `url(` skips CSS whitespace only, as the browser's tokenizer does
|
||||
// (security audit R3, pass 2): a Unicode space before `#` is not local.
|
||||
"url-unicode-space.svg" => json!({ "removed": ["path@fill", "path@style"],
|
||||
"strip": [["path", "fill"], ["path", "style"]] }),
|
||||
// C3 root: nothing that paints outside the box on the inline root (security audit R3).
|
||||
"root-presentation.svg" => {
|
||||
json!({ "removed": ["svg@transform", "svg@filter", "svg@mask", "svg@clip-path"] })
|
||||
|
||||
Reference in new issue
Block a user