Nothing

Scene format type model

Structural declarations for XML elements, properties, inheritance and child slots.

Read as Markdown

The WebIDL model describes the structure of all 32 Level 1 elements and the separate perspective trial. The generated reference shows legal owners, child slots, exact spellings, defaults, and keyability. The specification chapters define evaluation, including timing and rendering. The vocabulary inventory remains the input to existing format validators.

The standalone preview and N4 exercise the proposed perspective syntax alongside Level 1's 2D cameras. The trial includes the plane element, the camera's perspective fields and the scene's metric scale. The perspective optics decision defines ratified focus behavior. The spatial camera proposal describes source syntax under review and discusses further projections.

Find the governing rule

Authoring questionReferenceGoverning ruleEvidence
How does a document resolve its viewport, clock and sources?SceneCanvas and clock, source-preserving editing, diagnosticsDocument and patch cases
What can paint inside a shape and how does it stack?Shape, Fill, Paint, MaskGraphics and coveragePaint stacks, strokes and masks
Which point stays fixed while geometry resizes?RegistrationSize, registration and offsetBoxed geometry cases
Does blur read the drawable or earlier paint?Filter, Backdrop filterFilters and shadowsLayer effects
Which element owns a track, and how do its addresses resolve?Animate, KeyProperty animationProperty animation cases
Which clock controls a sequence and which clock controls its source?SequenceResolving a compositionMoving card
How does a child stay attached to a changing contour?LocatorAttachment hosts and locatorsAttachment conformance
How do groups, transform pivots and cameras affect coordinates?Group, Transform, CameraSpatial compositionCamera cuts, drawable blending
Which fonts and resources do I bind to reproduce the layout?Text font fieldsFont matching and resourcesFont resolution cases
How do I replace a word and preserve its style through reflow?Text, Span, Text copyText content and ownershipEditable caption and moving card
How do I reveal just one stroke along its contour?TrimContour distance and coverageTrim acceptance checks
Which perspective rules are ratified and which authoring fields are in trial?Camera, PlanePerspective optics, spatial camera proposalPerspective focus pull

Use the standalone preview coverage and the authoring readiness record to distinguish recognized source, sampled results, and verified editing operations.

XML annotations

Each concrete interface declares its case-sensitive XML tag with [Xml="…"]. An [Abstract] interface names shared structure or an element family. WebIDL inheritance and includes carry members to each concrete owner. Abstract interfaces and mixins have their own reference pages.

  • Writable members describe XML attributes. The member name gives the spelling unless it has an [Xml="…"] annotation. double uses the finite decimal grammar. Enums supply exact legal named values. DOMString represents a lexical form described by [Grammar="…"]. [Unit="…"] records units.
  • [Required] means the concrete owner needs an authored attribute. [Default="…"] records an omitted value or resolution rule. sampled <attribute> refers to another field's sampled value. [DefaultOverride="member=value"] changes an inherited default. [ValuesOverride="member=a,b"] narrows an inherited enum for one owner. Both use the WebIDL member name. [Constraint="…"] records conditional requirements such as paired fields, type-specific geometry and leaf copy.
  • [Keys=Scalar], [Keys=Color], [Keys=PointList], and [Keys=Path] use the corresponding continuous interpolation rules. [Keys=Hold] permits held changes. The trial's [Keys=Focus] uses scalar interpolation between positive f-numbers and holds when crossing between zero and a positive value. Attributes without a key annotation are static. [Target] gives an animation-only property its own heading and removes it from the XML attribute set. An owner with a keyable attribute or logical target admits animate children. Property animation
  • Readonly members denote child slots. An interface type gives one child, a nullable type gives zero or one, and FrozenArray<T> gives zero or more. [Min="1"] or [Min="2"] raises the minimum for a repeated slot. A union or abstract type supplies alternatives in the same slot. [Order="…"] records how source order affects evaluation.
  • [Parents="…"] lists allowed XML parents, or document for the root and property for an animation. An animation's actual parents follow from the keyable properties. [TrialParents="…"] records additional parents in the spatial trial. [Status=Trial] marks trial elements, members and child slots. Members declared on a trial element inherit that status.
  • [Title="…"] names an entry. Concrete reference headings use the XML tag. [Summary="…"] supplies a short page description. [Meaning="…"] and [Constraint="…"] explain the role and restrictions. [Spec="chapter.md#section"] links to the governing rule. When a member gives no rule of its own, it uses its declaring interface or mixin's link.

Keeping the reference current

The generated reference keeps existing element and owner heading links stable. A page's ID is the XML spelling for an element and the kebab-case type or mixin name for a shared definition.

From the format reference tool, run npm ci, npm run generate, npm run check, and npm test. Parity compares every expanded element context, attribute owner and enum value set, and animation-only target with the vocabulary. It requires matching incoming and outgoing child slots. The freshness check reports missing, stale, and orphan pages. Cardinality, conditional rules, and interpolation live in the type model and the linked chapters.

On this page