fix(anatomy): V1-2.2 read url() references in their strict spelling only

Security review BLOCK(1): url(#%61) passed the dangling check and the
per-view scoping and resolved in browsers. One strict reading now, other
spellings are active content; glued names are other functions; the
composer refuses an unscoped reference; owner export procedure.
This commit is contained in:
bchanot committed 2026-10-29 16:49:15 +01:00
1 parent 5281337412
commit a678faaa23
13 files changed
+553 -70

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ None is edited by hand.
| File | Tool | How | Expected |
|---|---|---|---|
| `cairo-1.18.4-pycairo-1.27.0-shapes.svg` | cairo 1.18.4 through pycairo 1.27.0 | `generate.sh`: curves, gradient, dash, clip, alpha, text as glyph paths | read with no removal: its colours are written `rgb(20%, 40%, 70%)`, the strict numeric colour function the reader keeps since the owner's decision of 2026-10-29 (before it, the four colours were removed) |
| `cairo-1.18.4-pycairo-1.27.0-shapes.svg` | cairo 1.18.4 through pycairo 1.27.0 | `generate.sh`: curves, gradient, dash, clip, alpha, text as glyph paths | read with no removal: its colours are written `rgb(20%, 40%, 70%)`, the strict numeric colour function the reader keeps since the owner's decision of 2026-10-29 (before it, the five colours were removed) |
| `cairo-1.18.4-pycairo-1.27.0-raster.svg` | same | `generate.sh`: an 8 × 8 image surface painted | refused, `svg_active_content` (an embedded raster `<image>`) |
| `inkscape-1.4.3-inkscape-svg.svg` | Inkscape 1.4.3 (0d15f75042, 2025-12-25) | `generate-inkscape.sh`: `inkscape-source.svg` opened and exported as Inkscape SVG (`--export-type=svg`) | cleanable: `sodipodi:namedview`, the editor namespaces, `sodipodi:docname`, `xmlns:svg` and the `text` element removed and named; shapes, gradient, clip path, references and colours kept |
| `inkscape-1.4.3-plain-svg.svg` | same | `generate-inkscape.sh`: Plain SVG (`--export-plain-svg`) | cleanable: `xmlns:svg` and `text` removed |
+46
View File
@@ -1 +1,47 @@
Owner-supplied editor exports land here (see ../README.md).
# What to export (A6, contract §9.2 and §15)
One small drawing per tool, made in that tool, never retouched by hand afterwards. Same
reference content as `../inkscape-source.svg`, so the results compare:
- an outline with a curve, filled with a two-stop linear gradient, a 2 px dashed stroke;
- an ellipse with a flat colour;
- a rounded rectangle at 50 % opacity;
- the whole group clipped by a rectangle (Illustrator: clipping mask; Figma: a frame with
« Clip content »);
- the word « Garrot » as live text.
Artboard or frame 200 × 150 px. Note the exact version (Illustrator: Aide › À propos
d'Illustrator; Figma: menu › Aide › À propos de Figma, or the desktop app's version).
## Illustrator
1. Fichier › Exporter › Exporter sous… › format SVG (`svg`), « Utiliser les plans de travail »
ticked.
2. Options SVG, two files:
- `illustrator-<version>-export-as.svg`: Style « Attributs de présentation », Police
« Vectoriser », Images « Incorporer », ID d'objet « Noms de calques », Décimales 2, Minifier
off, Responsive on;
- `illustrator-<version>-internal-css.svg`: the same with Style « CSS interne » (the export
most users keep by default; expected cleanable, its `<style>` named as removed).
3. If a third is easy: Fichier › Enregistrer sous… › SVG (`illustrator-<version>-save-as.svg`),
the older dialog, default settings.
## Figma
1. Select the frame, right panel › Exporter › « + » › format SVG.
2. Options, two files:
- `figma-<version>-export.svg`: defaults (« Contours du texte » ticked, « Inclure
l'attribut id » unticked);
- `figma-<version>-ids.svg`: « Inclure l'attribut id » ticked (the layer names become ids).
3. Exporter.
## Then
Copy the files here, unchanged, and tell Claude. The suite
`cargo test -p faunosteo-core --test svg_clean the_owner_editor_exports` reads every `.svg` in
this folder: each must be refused with a closed reason or cleaned into a stored form that reads
back with no removal. A file whose name contains `-active-` must be refused for active content
(useful if you want to try an export with a linked image or an animation). Nothing is uploaded
anywhere: these are test fixtures, committed with the tool and version in their names.