Implementation support
Evidence for authoring, rendering and editing .nothing scenes.
The specification defines the 0.9.0 Level 1 rehearsal. This page records what has been exercised in the standalone preview and N4. A successful vocabulary check establishes recognized spelling and ownership. Pixel and round-trip checks establish behavior for their specific samples and edits. Level 1 specification · Conformance cases
| Task | Evidence |
|---|---|
| Author a scene from a compact guide | The compact guide, runnable first scene and worked guides cover authoring and predicted results. |
| Find a property to patch | The fixed-viewport rectangle identifies the exact source bytes for a width edit. The gradient and stroke cases identify a key and expected samples after its edit. |
| Check example spellings | Run python3 ncf/tools/vocabulary.py --check from the repository root. It checks example vocabulary and table freshness. Run npm --prefix ncf/tools/reference run check after installing the reference tool’s pinned dependencies to check the generated reference and model coverage. |
| Check expected meaning | Start with the element and attribute reference and the owning contract. The graphics and timing cases and SVG exchange pair supply acceptance criteria. |
What the hosts exercise
| Operation | Standalone preview | N4 |
|---|---|---|
| Recognize or diagnose source | The CLI reports XML source locations for unsupported sampled operations. Best-effort attachment checks exercise documented degradations. Preview profile | The native validator accepted the complete canonical specimen. The validator and Metal sample are distinct checks. Review set |
| Sample pictures and animation | The CLI samples 2D scenes and nested local picture placements. Its coverage includes the checked examples below. Decoded audio and video, bidirectional text, sweep gradients, and diamond gradients are outside its current preview profile. Preview profile | The native CLI rendered checked font, mask and nested-clock cases on Apple M2 Pro Metal. The complete specimen's diamond gradient produced a diagnostic at frame 0. Moving card |
| Edit and reopen source | Edit the XML and resample. The CLI writes one picture as SVG. Preview CLI | Native tests exercise single-key edits and save/reopen, including a missing font and the perspective focus trial. Editor checks · Font tests |
| Trial perspective optics | The perspective-only trial is sampled into a raster picture embedded in SVG. Focus trial | Native tests measure defocus and exercise selection, picking and focus-key edits. Optical measurements |
The perspective optics are ratified.
Spatial authoring syntax, units and defaults remain under review, including
the trial plane element. Spatial camera RFC
Reproducible observations
For a rectangle, circle or ellipse, the compact guide shows how to register and offset its geometry within the drawable. The centered-rectangle case isolates rotation, a width change and each omitted registration axis. The clearance and rotated-ellipse cases give hand-calculated edge and center positions for checking animation, attachment and a single-key edit. Both readers implement the geometry contract. The vocabulary check covers spellings and ownership. Boxed geometry · Scenes and expected samples
The compound-trim case checks a pen lift, round caps and the completed join of a closed loop.
The compound-path case exercises a discrete fill-rule edit across painted geometry, a mask and a boolean operand in both renderers.
The font resolution cases compare a mixed-script caption to explicitly styled copy. The SVG preview and native N4 CLI exercise family substitution and coverage fallback. The native editor also checks byte-preserving save and reopen with a missing family, followed by exact pixel recovery when its binding returns.
Four independent authors used the compact attachment rules to build a progress bar, route, price label and dial. Across the four trials they answered 36 placement questions. Reproduce the 22 executable checks on their four scenes alongside the 235 assertions on the original 21 cases with python3 ncf/conformance/check_attached_drawables.py ncf/target/debug/ncf-preview after building the preview. The trials exercised the original guide entry. Future revisions can repeat the same briefs against the current guide. Briefs, questions and authored scenes · Original trial record · Current guide
Run python3 ncf/conformance/check_composition.py to check both XML
files in the moving-card case, including
frame-addressed placements, the independent source slip and held copy edit. The script samples the
fixture's values and checks the expected arithmetic.
The camera fixtures give interior pixel witnesses for named cuts, pan, zoom, roll, and a referenced scene with its own camera. The standalone preview tests the perspective trial at frames 0, 12, and 24. Each frame sharpens a different mark, with all three projected centers held in place. N4 also tests focus-key insertion, save and reopen, projected picking, and the change in defocus diameter at a different f-number. Editor checks · Optical measurements · Focus trial and checks
The backdrop panel pairs a geometry-bounded blur with a source shadow and independently editable tint.
The layer filters case exercises changing a single blur key and reordering source-image operations. The inner shadows example distinguishes rectangle geometry from an image’s painted alpha. Filter contract
The boolean cutout keeps the word editable. Change its copy and compare the glyph holes, enclosed counters and overlaid line in the pixel checks.
The preview CLI renders the moving card, rectangle and subtraction case to standalone SVG. The pixel probes exercise edits through the actual command and an external SVG rasterizer, including sampling and editing one animated mask corner in the moving card. The linked artwork case checks that replacing one external SVG updates both an animated placement and its use as an alpha mask. The path syntax example exercises compact SVG 2 commands in a geometry mask and an elliptical arc revealed by stroke trim. The cubic trim probe checks the endpoint at half the contour length and the change in coverage when an author switches from a butt cap to a round cap. The closed-rail probe checks the join where a translucent band crosses the seam and the butt caps at its two tips.
On 2026-12-04 the standalone preview produced SVGs for 14 of the 15 scenes in the Level 1 review set. The smoke test used frame 0 for scenes with an authored frame rate, base values otherwise, and a 320 × 224 caller viewport for the nested graphic. It used the default font environment and checked successful SVG export. The canonical specimen stopped at its sweep gradient. The native N4 validator accepted the same scene, and the Metal render stopped at its diamond gradient on frame 0. Full-specimen publication needs a renderer that supports both gradient types and independent observations for the chosen samples.
The same day's moving-card preflight bound PT Serif Regular 400 and Bold 700 to the same fixture files in both renderers. Preview and N4 on Apple M2 Pro Metal matched the two expected panel colors at frame 24 and alpha 128 in the panel at frame 60. N4's seek from frame 60 back to frame 12 reproduced its first frame-12 RGBA buffer. Moving-card sample contract
The published reference manifest records exact sample times, viewports, bound resources, and independent observations for the manual's ten rendered examples. It includes the centered rectangle at frames 0, 4 and 8. The checker verifies the expected geometry and compares the decoded WebPs to fresh rasters. Reference checks
Editor save/reopen of the full canonical specimen and round-trip SVG conversion still need implementation evidence.
The layer blend fixtures distinguish isolated and pass-through artwork, once-only coverage and a source blur animated from zero.