dom-layout-shim 0.3.0
Minor Changes
-
a2963e2: Add explicit deterministic native-control profile selection and per-control
metric overrides. The initialportableprofile names and preserves the
package's existing intrinsic control geometry instead of deriving it from the
runtime host. Overrides can specialize one metric or replace the complete
profile.await attachLayoutEngine({ window, nativeControls: { profile: "portable", overrides: { textInput: { width: 220 } }, }, }); // An unstyled text input is 220×23 on Linux, macOS, and Windows: // the width is overridden while the portable height remains in effect. document.querySelector("input")?.getBoundingClientRect();
-
d61c212: Support two-dimensional translation and scaling through both
transform
functions and the individualtranslateandscaleproperties. Percentage
values, transform origins, ordered function lists, transformed descendants,
client rectangles, and point queries are included./* Transform functions are now reflected in geometry and hit testing. */ .dialog { transform: translate(20px, 10px) scale(1.25); transform-origin: left top; } /* The equivalent individual properties are also supported. */ .popover { translate: 50% 8px; scale: 1.25; }
Layout flow and offset/client dimensions remain untransformed, matching browser
behavior.
Patch Changes
-
ee791b0: Update the documentation site with a complete usage guide, syntax-highlighted
code examples, highlighted CSS support search matches, automatic light and dark
themes, and a package changelog that separates pending Changesets under
Upcomingfrom versions confirmed by release tags. Navigation is consistent
and marks the current page, bracket pairs are depth-colored, CSS support results
are relevance-ranked in a denser layout, and changelog commit references link
to their source. Shared styles, flash-free generated navigation, responsive
menus, visible release context, keyboard focus treatment, and reduced-motion
support keep the experience consistent across pages and devices.For example, after a feature merges but before its package release, its entry is
shown as:Upcoming Add the newly merged feature.After the release tag is created, the same changelog section is shown under its
published version instead.For example, searching the CSS support explorer for
flexnow places an exact
property match before records that only mention flex in supporting notes:Flex layout — exact property match Display model — supporting evidence match Grid layout — supporting evidence matchSupport searches now report the filtered result count, expose labeled and
resettable controls, and give every support area a stable link such as
css-support-status.html#flex-layout. Guide navigation follows the currently
visible section and accounts for the sticky header when following a section
link. The changelog likewise keeps the current version visible while scrolling,
also identifies the current major, minor, or patch section, links directly to
release headings, and can filter entries by release type. External references
open in a separate tab, and Chromium parity fixtures are styled as source links
rather than inert metadata chips.The generated website is deployed from an ignored build directory rather than
being bundled into the npm package. Authored Markdown and machine-readable
documentation remain included in the package.Internal pages are prefetched and prerendered where the browser supports it, so
documentation navigation responds immediately without an artificial transition
delay. -
4d6d9f3: Improve browser-compatible wrapping in canvas-capable runtimes by updating
Pretext to 0.0.8. Text such asfoo!bar,foo/bar, andfoo♂barnow keeps
symbols that browsers treat as part of the word within the same breakable run.
When wrapping at a soft hyphen, the line now ends at the rendered hyphen instead
of incorrectly pulling letters from after the break onto the preceding line.For example, at a constrained width, a soft-hyphen break changes from:
trans-a | tlanticto the browser-compatible break:
trans- | atlanticRuntimes without Canvas 2D text measurement continue to use the deterministic
fallback measurer and are unaffected by these Pretext-specific corrections.