Repository navigation
Scoped build/lint/fix scripts, SVG text and picture fixes, exact-case file access - #156
Merged
Merged
Conversation
- build.ps1 -Affected [-Base <ref>] builds and tests only the test projects affected by the changed files (ProjectReference graph plus linked items), falling back to the full build for build-wide files; -Project selects explicit projects; -DryRun prints the selection. - lint.ps1 -Changed runs only the checks whose inputs changed and limits dotnet format to the changed C# files; -DryRun prints the selection. - fix.ps1 -Changed runs only the fixers for the changed file types. - With no switches all three scripts behave exactly as before (CI unchanged). - AGENTS.md Scoped Validation and CONTRIBUTING.md document the development loop. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…eight box A gradient or pattern in objectBoundingBox units on a shape whose bounding box has no width or no height (a horizontal or vertical line) is now ignored as SVG 2 and browsers require: the fallback color after the reference is painted, or nothing. The url() reference now ends at its first closing parenthesis, so url(#g) rgb(0,128,0) resolves #g. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… or non-uniform scale The image resolver was asked for the transformed edge lengths of the placement, a box of the wrong shape under a skew or a non-uniform scale, so a vector source was letterboxed twice and came out smaller and squashed. It is now asked for the placement's own width x height scaled by the largest singular value of the transform (clamped to the maximum surface size keeping the aspect), and the transform maps the result as in SVG. Uniform scale and rotation requests are unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ersection Scene.ComputeBounds now follows the boolean structure with an iterative post-order walk: a difference counts only its first operand, an intersection the overlap of its operands (empty when disjoint), and overlay bodies always count. A cutter much larger than the part no longer shrinks the fitted camera. The depth range is unchanged (it still comes from every instance vertex). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A .scad link (SVG image, Mermaid img, and every other user of the image resolver) and an input path take projection=ortho|orthographic|perspective (any case), the words of --projection. Another or an empty value is image-fragment-invalid. On an input path the fragment replaces the --projection of the command (InputSelection tracks whether the fragment chose it, because ScadViewOptions.Perspective cannot tell an orthographic choice from none). The projection alone does not make the view explicit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…xt that is not drawn A text was laid out as one flat run of element.Value in the text's own style, so the fill, font, class, style, x/y and dx/dy of a tspan were ignored, title/desc text was drawn, an x list failed the whole document, and a or switch content (draw.io labels) silently disappeared. SvgCodec.TextLayout.cs now lays a text out as styled, positioned runs, shared by painting, the filter bounds pre-pass and clip-path text: tspan and a take their own cascade, x/y/dx/dy lists place each character, an absolute position starts a text chunk anchored by its first character's text-anchor, dy persists, baseline-shift moves a run (super/sub as in Edge), and white space collapses as in browsers. A text of one run takes exactly the old arithmetic, so plain text is pixel-identical. a is drawn like a group; switch draws its first child that does not need foreignObject. The library had no channel for what it cannot draw. SvgLoadOptions.UnsupportedFeatureHandler now receives SvgUnsupportedFeature reports after painting, once per code with a count: svg-text-not-drawn (textPath, text in foreignObject, nested svg or unknown elements, negative font-size, non-finite transform, coordinates out of range) and svg-text-unsupported (rotate, textLength, spacing, vertical or rtl writing, dominant-baseline, text-decoration, an unsupported baseline-shift, characters no font covers). Reports never change the pixels. SvgImageSource returns them as Unsupported notes, or throws UnsupportedImageFeatureException with ThrowOnUnsupportedFeature. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…th --strict SourceLoader passes SvgLoadOptions.UnsupportedFeatureHandler for the SVG file it renders and for a nested SVG file, and turns each report into an svg note of severity unsupported (svg-text-not-drawn, svg-text-unsupported). With Strict the first report is the error unsupported-feature (its inner UnsupportedImageFeatureException lets an embedding document's resolver report a nested file), so canvasnet render --strict fails on it as on any other unsupported feature. The help cards and user guides list the two codes and the tspan support. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The composition explainer is rendered with --strict, and letter-spacing on the APPROVED pill and the RENDERS TO eyebrow is now reported as svg-text-unsupported, which --strict fails on. The renderer never applied it, so removing it leaves the pixels unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… sizing under skew The charts and the Mermaid diagram on the skewed planes of composition-explained.png are now requested at their placement aspect (commit 89f49d2, embedded pictures under skew or non-uniform scale), so their small text and dashed rules are resampled differently (0.23% of the pixels, SSIM 0.9994). The SVG text of the image is unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A text of several runs with an opacity between 0 and 1 now goes through the effects pipeline's offscreen layer, so overlapping runs cover each other as in browsers instead of showing through. Plain and single-run text, and fill-opacity, are unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ents The errors and flatten help cards (and the tool guide) say that svg-text-not-drawn and svg-text-unsupported become unsupported-feature errors under --strict. The viewer and library guides list projection and theme among the fragment parameters. The composition explainer comment no longer describes workarounds, and a doubled blank line is removed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
letter-spacing is added after every grapheme cluster, the last one too, and word-spacing after every space and no-break space (on top of the letter spacing), keeping the font's kerning. Both take a length, em, a percentage of the font size (kept relative and resolved with each character's own size, as in Edge), or normal; they are inherited and an invalid value is ignored. A middle or end anchor uses the chunk width including the trailing spacing, as Edge does. Text without spacing keeps its exact plain-text layout, and clip paths, filter bounds, and gradient boxes follow the same layout. Spacing is no longer reported as svg-text-unsupported. Requirement CanvasNetSvg-SvgCodec-TextSpacing, design, verification, user guides, and the svg help cards are updated; the layouts were checked against Edge headless. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A fill or stroke whose url() reference names no element, points into another file, or names an element that is not a linearGradient, radialGradient, or pattern now paints the fallback color written after it (url(#missing) orange), as SVG 2 Painting and Edge do; without a fallback it still paints nothing. A gradient without stops still paints nothing even with a fallback. The arrowhead hint follows the resolved paint. Requirement CanvasNetSvg-SvgCodec-PaintReferenceFallback, design, verification, the user guide, and the svg help card are updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Commit a3d8ada removed letter-spacing: 1px from .pPill (the APPROVED pill of composition-explained.svg and page.svg) and letter-spacing: 3px from .eyebrow (RENDERS TO) because the renderer did not draw it and --strict failed on the report. Letter spacing is drawn now, so the sources get it back and docs/images/composition-explained.png is regenerated: the pill text is tracked and still fits its pill (also on the skewed page), and the eyebrow is spaced under the arc as intended. No other image changed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…gCodec docs: spacing is drawn Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A folder may be case-sensitive on every platform (Windows per-directory case sensitivity, case-sensitive APFS), so a real path is no longer compared with an allowed root case-insensitively: C:\work\ALLOWED is outside C:\work\allowed. - RealPath: IsUnder/PathsEqual are ordinal (macOS composed form kept); the written-path pre-check uses the new IsUnderAsWritten (platform rule); CommonAncestor compares components exactly. New GetExactPathName (on-disk letter case, never throws), ExactRoot, TryGetExactCanonicalDirectory and TryConfirmExactPath/IsSameFile (Windows volume serial and file index, Linux/macOS device and inode, reached through no link). - UnderRoots captures each root in its on-disk letter case; NoSymlinks and the obsolete SandboxedFileResolver compare against the on-disk spelling. - FileReferenceResolver gives a restrictive policy the real path in its on-disk letter case once it is confirmed to name the open handle, and denies (AccessDenied) when it cannot be confirmed; anchor and root caches are keyed exactly; FileOpenHooks.ExactPathOf is the test seam. - render: the default roots are deduplicated exactly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Requirements (new CanvasNet-Files-RealPath-ExactCase, -Identity and CanvasNet-Files-FileReferenceResolver-ExactCase; updated Comparison, UnderRoots, NoSymlinks, sandbox verification, render file access and SourceLoader file access, with test links and source filters), design and verification documents, the SysML2 RealPath text, the core user guide file-access section, and the tool user guide with the matching 'letter case' item of the 'canvasnet help files' card. Replaces the documented case-insensitive known limit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Defer approval because the security-sensitive cross-platform file-identity change includes an untested macOS native path and requires human review of its initial macOS CI/runtime validation.
No open issues 🎉
What changed in this PR
This PR adds scoped build, lint, and fix workflows while improving SVG and OpenSCAD rendering and hardening exact-case file-access enforcement across CanvasNet.
Changes:
- Adds affected-project selection, changed-file validation, and contributor guidance.
- Improves SVG text layout, unsupported-feature reporting, fallback paints, transformed image sizing, SCAD framing, and projection fragments.
- Strengthens file-access checks with exact stored casing, handle identity confirmation, and fail-closed race handling, alongside updated tests and documentation.
| File | Description |
|---|---|
| test/DemaConsulting.CanvasNet.Viewer.Tests/Imaging/InputSelectionTests.cs | Tests SCAD projection fragment precedence and validation. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/FixtureFactory.cs | Adds temporary-folder case-sensitivity probing support. |
| test/DemaConsulting.CanvasNet.Viewer.Tests/CanvasNetViewerFragmentTests.cs | Tests projection fragments through the viewer. |
| test/DemaConsulting.CanvasNet.Tool.Tests/Commands/RenderCommandSvgEmbedTests.cs | Tests unsupported SVG text handling and strict-mode failures. |
| test/DemaConsulting.CanvasNet.Tool.Tests/Commands/RenderCommandFileAccessTests.cs | Tests exact-case default roots and allow-root behavior. |
| test/DemaConsulting.CanvasNet.Tool.Tests/Commands/InputFragmentTests.cs | Tests projection input fragments and related validation. |
| test/DemaConsulting.CanvasNet.Tool.Tests/Commands/HelpTopicsTests.cs | Verifies projection fragment help content. |
| test/DemaConsulting.CanvasNet.Tests/Files/SandboxedFileResolverRaceTests.cs | Tests fail-closed exact-path identity checks. |
| test/DemaConsulting.CanvasNet.Tests/Files/FileTestSupport.cs | Adds filesystem case-sensitivity test helpers. |
| test/DemaConsulting.CanvasNet.Tests/Files/FileReferenceResolverTests.cs | Tests case-variant roots and stored real-path spelling. |
| test/DemaConsulting.CanvasNet.Tests/Files/FileReferenceResolverRaceTests.cs | Tests exact-path races, identity confirmation, and top-level references. |
| test/DemaConsulting.CanvasNet.Svg.Tests/SvgSystemIntegrationTests.cs | Adds SVG text and unsupported-feature integration coverage. |
| test/DemaConsulting.CanvasNet.Svg.Tests/SvgPositionBindingTests.cs | Updates coordinate-list behavior expectations. |
| test/DemaConsulting.CanvasNet.Svg.Tests/SvgArrowTests.cs | Tests fallback paint visibility for arrow hints. |
| test/DemaConsulting.CanvasNet.Scad.Tests/ScadViewportTests.cs | Tests result-based difference and intersection framing. |
| test/DemaConsulting.CanvasNet.Scad.Tests/ScadDocumentRenderTests.cs | Tests fitted rendering for Boolean results. |
| test/DemaConsulting.CanvasNet.Scad.Tests/Geometry/ScadGeometryBuilderBooleanTests.cs | Updates intersection bounds expectations. |
| src/DemaConsulting.CanvasNet/Files/SandboxedFileResolver.Paths.cs | Documents exact real-path containment rules. |
| src/DemaConsulting.CanvasNet/Files/SandboxedFileResolver.cs | Verifies exact real-path spelling and handle identity. |
| src/DemaConsulting.CanvasNet/Files/RealPath.Windows.cs | Adds Windows file-identity confirmation. |
| src/DemaConsulting.CanvasNet/Files/RealPath.Unix.cs | Adds Linux and macOS file-identity confirmation. |
| src/DemaConsulting.CanvasNet/Files/FileReference.cs | Documents confirmed on-disk real paths. |
| src/DemaConsulting.CanvasNet/Files/FileOpenHooks.cs | Adds exact-path test seams. |
| src/DemaConsulting.CanvasNet/Files/FileAccessRequest.cs | Replaces long-path snapshots with exact-path snapshots. |
| src/DemaConsulting.CanvasNet.Viewer/Imaging/InputSelection.cs | Adds projection fragment parsing and precedence. |
| src/DemaConsulting.CanvasNet.Tool/Commands/RenderCommand.FileAccess.cs | Applies exact lexical root comparisons. |
| src/DemaConsulting.CanvasNet.Tool/Commands/RenderCommand.cs | Documents projection fragment support. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/units.md | Documents text positioning and spacing units. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/supported.md | Documents SVG text, fallback paint, switch, and transformed-image support. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/options.md | Documents strict handling of unsupported SVG text. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/framed-figure.md | Updates example callout geometry. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/fragments.md | Documents projection fragments. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/flatten.md | Documents strict handling of embedded unsupported text. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/svg/diagnostics.md | Documents SVG text diagnostic codes. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/scad/views.md | Documents result-based framing and projection fragments. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/scad/differences.md | Documents SCAD projection fragment validation. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/files.md | Documents exact-case file-access decisions. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/Examples/svg-framed.svg | Updates example callout coordinates. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/errors/diagnostics.md | Documents SVG text diagnostics in command errors. |
| src/DemaConsulting.CanvasNet.Tool/Commands/Help/errors.md | Documents strict SVG text failures. |
| src/DemaConsulting.CanvasNet.Svg/SvgUnsupportedFeature.cs | Adds public unsupported-feature report data. |
| src/DemaConsulting.CanvasNet.Svg/SvgLoadOptions.cs | Adds the unsupported-feature callback option. |
| src/DemaConsulting.CanvasNet.Svg/SvgImageSource.cs | Propagates SVG unsupported-text notes and strict failures. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.PathRender.cs | Adds bounding-box fallback behavior for paint servers. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.Lengths.cs | Extends text length-list handling. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.Image.cs | Requests transformed images using placement aspect and singular-value scaling. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.Hints.cs | Aligns arrow visibility with fallback paint behavior. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.Gradients.cs | Updates gradient invalid-transform handling. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.cs | Integrates text layout, switch behavior, and unsupported-feature collection. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.ClippingAndMasking.cs | Uses laid-out text runs for clip-path geometry. |
| src/DemaConsulting.CanvasNet.Svg/SvgCodec.Bindings.cs | Traverses anchors and selected switch children during binding discovery. |
| src/DemaConsulting.CanvasNet.Render3D/SceneModel/CsgNode.cs | Documents result-based CSG bounds. |
| README.md | Documents projection fragments. |
| docs/verification/canvas-net/files/sandboxed-file-resolver.md | Adds exact-spelling race verification. |
| docs/verification/canvas-net/files/real-path.md | Adds exact-case and identity scenarios. |
| docs/verification/canvas-net/files/file-reference-resolver.md | Adds exact-case resolver verification. |
| docs/verification/canvas-net/files/file-access-policy.md | Updates exact-case policy scenarios. |
| docs/verification/canvas-net-viewer/imaging/source-loader.md | Adds projection, transformed-image, and SVG text verification. |
| docs/verification/canvas-net-viewer/canvas-net-viewer.md | Adds projection-fragment verification. |
| docs/verification/canvas-net-tool/commands/render-command.md | Adds projection and exact-case file-access verification. |
| docs/verification/canvas-net-tool/commands/help-topics.md | Updates help-topic verification. |
| docs/verification/canvas-net-svg.md | Adds SVG text integration verification. |
| docs/verification/canvas-net-scad/scad-geometry/scad-geometry-builder.md | Updates intersection-bound verification. |
| docs/verification/canvas-net-scad/scad-document.md | Adds fitted-result framing verification. |
| docs/verification/canvas-net-render3d/scene-model/scene-graph.md | Updates CSG and overlay bounds verification. |
| docs/user_guide/canvas-net.md | Documents exact-case file access and projection parameters. |
| docs/user_guide/canvas-net-viewer.md | Documents SVG diagnostics and projection fragments. |
| docs/user_guide/canvas-net-scad.md | Documents projection fragments and result bounds. |
| docs/user_guide/canvas-net-render3d.md | Documents overlay-aware result bounds. |
| docs/sysml2/model/canvas-net/files/real-path.sysml | Updates the RealPath architecture description. |
| docs/sysml2/model/canvas-net-viewer/canvas-net-viewer.sysml | Updates viewer fragment capabilities. |
| docs/sysml2/model/canvas-net-render3d/scene-model/scene-graph.sysml | Updates scene-bound semantics. |
| docs/reqstream/canvas-net/files/sandboxed-file-resolver.yaml | Updates race-free resolver requirements. |
| docs/reqstream/canvas-net/files/real-path.yaml | Adds exact-case and identity requirements. |
| docs/reqstream/canvas-net/files/file-reference-resolver.yaml | Adds exact-case resolver requirements. |
| docs/reqstream/canvas-net/files/file-access-policy.yaml | Updates roots and no-symlinks requirements. |
| docs/reqstream/canvas-net/files.yaml | Extends file subsystem race-free traceability. |
| docs/reqstream/canvas-net-viewer/imaging/source-loader.yaml | Adds SVG text and transformed-embedding requirements. |
| docs/reqstream/canvas-net-viewer/imaging.yaml | Registers the SVG unsupported-text requirement. |
| docs/reqstream/canvas-net-viewer/canvas-net-viewer.yaml | Adds projection fragment traceability. |
| docs/reqstream/canvas-net-viewer.yaml | Updates viewer fragment requirements. |
| docs/reqstream/canvas-net-tool/commands/render-command.yaml | Adds projection and file-access traceability. |
| docs/reqstream/canvas-net-svg.yaml | Adds SVG text and paint fallback requirements. |
| docs/reqstream/canvas-net-scad/scad-document.yaml | Adds fitted-view bounds requirements. |
| docs/reqstream/canvas-net-scad.yaml | Links fitted-view bounds into SCAD requirements. |
| docs/reqstream/canvas-net-render3d/scene-model/scene-graph.yaml | Updates scene-bound requirements and tests. |
| docs/images/composition-explained/composition-explained.svg | Updates the composition illustration description. |
| docs/design/canvas-net/files/sandboxed-file-resolver.md | Documents exact-case verification flow. |
| docs/design/canvas-net/files/file-reference-resolver.md | Documents exact-path confirmation. |
| docs/design/canvas-net/files.md | Documents exact-case file-access behavior. |
| docs/design/canvas-net-viewer/imaging/source-loader.md | Documents projection and SVG unsupported-text handling. |
| docs/design/canvas-net-viewer/canvas-net-viewer.md | Documents projection parsing. |
| docs/design/canvas-net-tool/commands/render-command.md | Documents scoped roots and projection precedence. |
| docs/design/canvas-net-svg.md | Documents transformed images, text layout, and unsupported reports. |
| docs/design/canvas-net-scad/scad-document.md | Documents result-based camera fitting. |
| docs/design/canvas-net-render3d/scene-rendering/scene-renderer.md | Documents result-based fitted rendering. |
| docs/design/canvas-net-render3d/scene-model/scene-graph.md | Documents iterative result bounds. |
| docs/design/canvas-net-render3d.md | Updates CSG bounds behavior. |
| CONTRIBUTING.md | Documents the scoped development loop. |
| AGENTS.md | Documents scoped build, lint, and fix behavior. |
| .reviewmark.yaml | Registers SVG text test files for review tracking. |
Review effort: Lite
macOS refuses O_NOFOLLOW together with O_NOFOLLOW_ANY with EINVAL (vn_open_auth), so every on-disk spelling was left unconfirmed and every case-corrected real path was denied on macOS. TryConfirmExactPath and IsSameFile now report why a spelling is not confirmed (internal, for diagnostics), and the tests carry that reason in their messages. The other-file test spells its path through the real folder, so it has no link in it (the macOS temporary folder is reached through /var). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Nov 20, 2026
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
One batch PR with three parts.
1. Scoped build, lint, and fix scripts
The scripts start from the template but are customized for this repository. With no switches they behave as before, so CI is unchanged.
build.ps1 -Affected [-Base <ref>] [-DryRun]maps the changed files (sinceorigin/main, plus uncommitted ones) to projects through theProjectReferencegraph and linked items. It then builds and tests only the dependent test projects. A$RuntimeReadsmap covers files tests read at run time: the help-card parity guides and the Pandoc shim. Build-wide files fall back to the full build.-Project Svg,Mermaidselects projects by name.lint.ps1 -Changedandfix.ps1 -Changedpick checks by the type of the changed files.dotnet formatruns only for changed C# (scoped with--include), and TextLint/LintMark only for Markdown and text. On this branchlint.ps1 -Changedtook about 3 minutes, against 10+ for the full run.-Affectedselection for all 12 source projects.2. Renderer gaps found by dogfooding (drawing the README images)
<tspan>is now laid out as styled, positioned runs: CSS classes and presentation attributes,x/y/dx/dyand their lists, nesting,text-anchorper chunk,baseline-shift.letter-spacingandword-spacingare drawn.<a>draws like<g>.<switch>draws its first drawable child; draw.io labels are a common case.SvgLoadOptions.UnsupportedFeatureHandler(svg-text-not-drawn,svg-text-unsupported), so--strictcatches it.difference()uses its first operand andintersection()the overlap.#projection=perspective|orthographicfragment key for.scadlinks and input paths.objectBoundingBoxgradient or pattern on a zero-width or zero-height box paints the fallback color or nothing, as in Edge.url(#missing) orangepaints the fallback.url(#g) rgb(...)now parses the reference correctly.3. File access: exact letter-case comparison of real paths (security)
In
--file-access roots, the deciding real-path containment compared paths ignoring case on Windows and macOS. In a case-sensitive folder (Windows per-directory case sensitivity, case-sensitive APFS),C:\work\ALLOWED\xtherefore passed for the rootC:\work\allowed.GetExactPathName: drive letter only for roots, exact-case entry wins, wildcard-safe) and confirmed against the open handle. The check compares file identity and requires a path with no link in it, so a race fails closed.Path.TrimEndingDirectorySeparator, separator boundary).--allow-root Docsstill works for the folderdocson case-insensitive volumes.SandboxedFileResolverfollow the same exact rule.docs/images/composition-explained.pngwas regenerated: the picture-sizing fix makes its embedded diagram and chart sharper.Type of Change
Related Issues
None filed: backlog items, plus a report from the DictionaryMark review.
Pre-Submission Checklist
Before submitting this pull request, ensure you have completed the following:
Build and Test
pwsh ./build.ps1(passed: 111,880 tests before the last additions;build.ps1 -Affectedafter the file-access change selected all test projects: 112,068 passed, 0 failed)Code Quality
Quality Checks
Please run the following checks before submitting:
pwsh ./lint.ps1(pwsh ./lint.ps1 -Changedpassed; it selects every check whose inputs changed, includingdotnet formaton the changed C#.render-images.ps1 -Checkpassed)Testing
Documentation
Additional Notes
--strictis stricter: SVGs withtextPath,rotate,textLength, vertical writing or aforeignObjectoutside a<switch>now fail a strict render, because the dropped feature is reported instead of being ignored silently.-Affectedgap and a stale doc comment, are fixed.