Skip to content

Commit 8409c99

Browse files
author
Kevin Arthur
committed
fix(import): preserve SVG fill opacity on use instances
1 parent 48486f5 commit 8409c99

8 files changed

Lines changed: 118 additions & 19 deletions

File tree

‎docs/audits/inkscape/continuation.md‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,50 @@
22

33
Last updated: 2026-10-19.
44

5+
## Resume checkpoint — 2026-10-19 10:26 UTC
6+
7+
- IID 1961's 13 user comments and 23 system/history events (36 cached notes)
8+
were reviewed. Inkscape's footer regression was closed after MR !3080's
9+
viewBox change and !3146's style-source propagation fix; neither is the same
10+
implementation path as Varve's importer. The notes' minimal SVG also
11+
exposed a matching observable defect in Varve: repeated `<use>` instances
12+
keep shorthand `#e5e` RGB correctly but lose `fill-opacity=".1"` on the
13+
basic shape's top-level fill color.
14+
- Added a regression in `packages/import/src/svg.test.ts`. Its first run failed
15+
for the expected reason (alpha 255 instead of 26); the focused test passed
16+
after `applyStylesToNode` began clamping and applying `fill-opacity` to the
17+
stored fill alpha as well as existing fill-array opacity. The focused import
18+
regression and complete `@varve/import` unit suite passed. E2E typecheck and
19+
import/editor/desktop typechecks passed. The full editor suite exceeded the
20+
affected lane's 5-minute limit; a direct retry continued for more than 12
21+
minutes while Vitest workers stayed busy and root free space fell below 250
22+
MB, so only that run was stopped. The first affected attempt hit ENOSPC before
23+
completing the same suite. The desktop unit suite passed (15 files, 90
24+
tests).
25+
- Added a permanent SVG-import E2E in
26+
`tests/e2e/canvas/file-import.spec.ts` that loads repeated legacy
27+
`xlink:href` instances with shorthand color and `.1` opacity and captures a
28+
canvas screenshot. The lease-wrapped Chromium regression now passes and its
29+
screenshot was inspected: both unselected repeated-use shapes render with
30+
the expected faint magenta fill, without selection overlays. A rerun without
31+
updating the baseline also passes. The full file-import spec passed (7/7),
32+
the import domain passed (12/12), and the export domain passed (14/14), all
33+
under the heavy-task lease. Chromium used the pure-TypeScript fallback, so
34+
these browser results do not certify the native renderer.
35+
- Slice 1951–1960 is committed locally as `48486f5bd` but not pushed. Its
36+
exact-ref push checkpoint passed local lanes; the actual pre-push hook
37+
refused to create its disposable target worktree because the root filesystem
38+
is full. The repository is at `217/230 GB` with only `1.3 GB` reported
39+
available; do not bypass the hook or remove another session's files. Recheck
40+
capacity after concurrent work finishes and retry safely, potentially using
41+
`/dev/shm` only if available memory is sufficient.
42+
- Discussion review progress is now 1,163/5,669 threads (IID 1961 adds 36
43+
notes: 13 user comments and 23 system/history events; its reported comment
44+
count reconciles). The 32 unrelated inventory retrieval mismatches remain.
45+
Continue with IID 1962 after the current #1961 affected checks, and retain
46+
#1953's menu screenshot as visually pending because Chromium exhausted
47+
resources before the app mounted.
48+
549
## Resume checkpoint — 2026-10-19 09:54 UTC
650

751
- PR #143's merge SHA `1946efe80b6c39c61fbdcf7667783dcf9f730bd1` is on

‎docs/audits/inkscape/findings.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,5 +3040,8 @@ The IID 1941–1950 discussion sweep covers 120 cached notes (48 user comments,
30403040
- [#1958](https://gitlab.com/inkscape/inkscape/-/work_items/1958) reports an absolute-path script IRI being rewritten to `file://` while editing/saving SVG. Varve does not round-trip editable SVG scripts through that workflow; no equivalent mutation path was established.
30413041
- [#1959](https://gitlab.com/inkscape/inkscape/-/work_items/1959) reports freezes and occasional crashes while dragging an envelope/perspective live-path-effect cage into a singular configuration. Varve has no live path effect runtime or matching cage interaction.
30423042
- [#1960](https://gitlab.com/inkscape/inkscape/-/work_items/1960) reports incorrect Stroke to Path results for zero-length dash segments with round caps. Varve's `expandStrokeNode` passes the path centerline, width and cap into `expandStroke` without consulting `stroke.dashPattern`. This is a relevant candidate defect in Varve's stroke-expansion route; correct dashed-outline behavior and a focused regression remain to be implemented and visually verified.
3043+
- [#1961](https://gitlab.com/inkscape/inkscape/-/work_items/1961) began as black tutorial footers after tutorials started opening as new documents. Its 13-user-comment discussion narrowed into SVG style propagation regressions: shorthand `#e5e` on clones and leading-decimal `fill-opacity=".1"`. Inkscape closed the report after [MR !3080](https://gitlab.com/inkscape/inkscape/-/merge_requests/3080) changed viewBox handling and [MR !3146](https://gitlab.com/inkscape/inkscape/-/merge_requests/3146) corrected style-source propagation; those upstream fixes do not map to Varve's import path. Varve already parses `#rgb`, but `applyStylesToNode` only applied fill-opacity to fill arrays, leaving the basic shape's `fill.a` unchanged. A repeated-`<use>` regression reproduced alpha 255 instead of 26 for `.1`; a local fix now clamps and applies the multiplier to top-level color alpha and existing fill opacity. The focused importer regression, full `@varve/import` suite, and Chromium visuals pass. The screenshot was inspected with selection overlays dismissed; it shows both repeated-use shapes with the expected faint magenta fill. The full file-import E2E (7), import domain (12), and export domain (14) pass; Chromium used the pure-TypeScript fallback, so this does not certify native rendering. The broader editor unit suite exceeded the affected lane's time limit and was stopped after exceeding 12 minutes under machine pressure.
30433044

30443045
The IID 1951–1960 discussion sweep covers 145 cached notes (77 user comments, 68 system/history events) across ten threads. The #1954 cache has 31 user comments against 32 reported; this is one of the 32 unresolved inventory-level retrieval mismatches.
3046+
3047+
The IID 1961 discussion contains 36 cached notes (13 user comments and 23 system/history events); the reported user-comment count reconciles.

‎docs/audits/inkscape/issue-ledger.jsonl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@
19291929
{"iid":1958,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1958","title":"script element with xlink:href referencing local serving context changed to file://","state":"closed","created_at":"2020-09-25T23:44:07.524Z","updated_at":"2022-07-24T13:40:33.983Z","closed_at":"2020-10-23T15:54:13.578Z","labels":["Importance::Medium","regression"],"description_present":true,"description_char_count":1389,"reported_note_count":4,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"reviewed 2026-10-19; all 9 cached note records read (4 user comments, 5 system/history events) (discussion batch IID 1951–1960)","linked_evidence_review":"reviewed URI-resolution discussion; maintainers agreed absolute-path and network-path IRIs should not be rebased like relative paths","varve_mapping":"Varve does not provide Inkscape-style SVG script editing and save round-tripping; active SVG content is handled by the import safety boundary, so the same script-IRI rewrite was not established","engineering_disposition":"no matching Varve corruption route established; retain as a source-format preservation limitation to revisit if script round-tripping is added","visual_validation":"not applicable; no equivalent script round-trip"}
19301930
{"iid":1959,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1959","title":"LPE envelope / perspective - freeze and sometimes crash dragging nodes together","state":"opened","created_at":"2020-10-20T09:05:59.139Z","updated_at":"2023-04-28T08:40:07.418Z","closed_at":null,"labels":["Importance::Medium","crash","live path effects (LPE)"],"description_present":true,"description_char_count":694,"reported_note_count":10,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"reviewed 2026-10-19; all 16 cached note records read (10 user comments, 6 system/history events) (discussion batch IID 1951–1960)","linked_evidence_review":"reviewed freeze/crash reports and cross-linked perspective-envelope crash #1415; comments distinguish an unrecoverable update loop from an occasional singular-matrix crash","varve_mapping":"Varve has no live path effect or editable perspective-envelope cage workflow","engineering_disposition":"no matching Varve interaction path; this would require a new LPE subsystem, not a bounded defect repair","visual_validation":"not applicable; no matching feature route"}
19311931
{"iid":1960,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1960","title":"Stroke to path not working on 0-width dashes","state":"opened","created_at":"2020-10-20T19:46:55.721Z","updated_at":"2022-07-24T13:30:29.600Z","closed_at":null,"labels":["Commit identified","Importance::Medium","regression"],"description_present":true,"description_char_count":2218,"reported_note_count":3,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"reviewed 2026-10-19; all 7 cached note records read (3 user comments, 4 system/history events) (discussion batch IID 1951–1960)","linked_evidence_review":"reviewed reproduction, bisection to commit 703f1f35c2f5499e525685df21b9faa666c31197 and partial-fix discussion; the reported case is round-capped zero-length dash segments","varve_mapping":"Varve exposes stroke expansion for selected paths, but expandStrokeNode currently passes only centerline points, width and cap into expandStroke and does not expand stroke dashPattern. This is a relevant unverified behavior gap for dashed strokes; inspect dash semantics and add a focused regression before claiming equivalence.","engineering_disposition":"potential Varve defect identified; implementation and visual geometry validation pending","visual_validation":"pending; inspect generated outline against rendered dash pattern"}
1932-
{"iid":1961,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1961","title":"Tutorial footers are black (1,1-dev)","state":"closed","created_at":"2020-10-19T12:46:56.599Z","updated_at":"2022-07-24T14:07:23.311Z","closed_at":"2021-04-29T18:54:51.440Z","labels":["Commit identified","Importance::Medium","regression"],"description_present":true,"description_char_count":816,"reported_note_count":13,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"pending","linked_evidence_review":"pending","varve_mapping":"pending","engineering_disposition":"pending","visual_validation":"pending"}
1932+
{"iid":1961,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1961","title":"Tutorial footers are black (1,1-dev)","state":"closed","created_at":"2020-10-19T12:46:56.599Z","updated_at":"2022-07-24T14:07:23.311Z","closed_at":"2021-04-29T18:54:51.440Z","labels":["Commit identified","Importance::Medium","regression"],"description_present":true,"description_char_count":816,"reported_note_count":13,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"reviewed; all 13 user comments and 23 system/history events read (36 cached notes); 13/13 reported user comments reconcile","linked_evidence_review":"MR !3080 explicitly marks #1961 fixed via viewBox handling; MR !3146 fixes style_src propagation; comments document the #e5e shorthand and .1 fill-opacity clone repros; upstream paths differ from Varve SVG import","varve_mapping":"Varve SVG import supports #rgb colors and expands internal <use> references, but fill-opacity was applied only to fill arrays and left basic-shape fill.a unchanged; focused clone regression reproduced alpha 255 instead of 26","engineering_disposition":"local fix clamps fill-opacity and scales top-level color alpha (and multiplies existing fill opacity); focused regression and complete @varve/import suite pass; file-import E2E 7/7, import-domain E2E 12/12, and export-domain E2E 14/14 pass; desktop 90/90 pass; editor suite exceeded the lane time limit and was stopped under machine pressure","visual_validation":"verified: lease-wrapped Chromium screenshot inspected; repeated-use shapes render faint magenta at expected 0.1 opacity with selection overlays dismissed; pure-TypeScript fallback was active, not native-engine verification"}
19331933
{"iid":1962,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1962","title":"Text's Stroke and Fill displaced in pdf export if using missing font face.","state":"opened","created_at":"2020-10-20T15:32:46.991Z","updated_at":"2026-05-20T15:36:17.590Z","closed_at":null,"labels":["Cairo PDF Export","Importance::Low","PDF","save+export","text"],"description_present":true,"description_char_count":1766,"reported_note_count":2,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"pending","linked_evidence_review":"pending","varve_mapping":"pending","engineering_disposition":"pending","visual_validation":"pending"}
19341934
{"iid":1963,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1963","title":"B-spline and spiro lost when Reversing path (1.0.x) [Fixed]","state":"closed","created_at":"2020-10-20T22:08:20.726Z","updated_at":"2022-07-24T13:39:29.315Z","closed_at":"2020-11-19T12:43:05.411Z","labels":["Importance::Medium","live path effects (LPE)","regression"],"description_present":true,"description_char_count":745,"reported_note_count":4,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"pending","linked_evidence_review":"pending","varve_mapping":"pending","engineering_disposition":"pending","visual_validation":"pending"}
19351935
{"iid":1964,"source_url":"https://gitlab.com/inkscape/inkscape/-/issues/1964","title":"Tweak tool: crash attracting part of path between two circles","state":"closed","created_at":"2020-10-20T11:53:15.241Z","updated_at":"2023-12-05T15:33:38.890Z","closed_at":"2023-12-02T18:44:39.082Z","labels":["Importance::Medium","Snapping","Tool::Tweak","crash"],"description_present":true,"description_char_count":1889,"reported_note_count":6,"body_screening":"reviewed; full description read in IID 1201–2400 sweep","discussion_review":"pending","linked_evidence_review":"pending","varve_mapping":"pending","engineering_disposition":"pending","visual_validation":"pending"}

0 commit comments

Comments
 (0)