Attribute a web view puts on each element that wraps one zoom area's content (below its own
toolbar, outside dividers and headers). The attribute value is the area id. Three values name the
MAIN_CONTENT_ZOOM_AREA area instead: an empty value
(data-platform-content-zoom-root=""), ="main", and the ="true" React serializes a bare JSX
prop (<div data-platform-content-zoom-root />) to. Write the empty value in static markup and
the bare prop in JSX; either way the area is main. The platform's injected stylesheet applies
zoom: var(--platform-content-zoom-<area>) to it. A marker inside another marker is ignored —
matched by neither the platform's stylesheet nor its report of the view's areas — so nesting
never compounds one area's zoom into another's. A web view that renders no element with this
attribute is not zoomed at all, unless core declares its web view type zoomable: it renders at
100 % content zoom, its tab menu has no zoom items, and the zoom chords and Ctrl/⌘+wheel do
nothing there. Interface scaling still applies to it.
Extension code cannot import this value at runtime — @papi/core is types-only — so a web view
writes the literal 'data-platform-content-zoom-root' itself and keeps it equal to this
constant.
This constant is unstable and may change or disappear without notice
Attribute a web view puts on each element that wraps one zoom area's content (below its own toolbar, outside dividers and headers). The attribute value is the area id. Three values name the MAIN_CONTENT_ZOOM_AREA area instead: an empty value (
data-platform-content-zoom-root=""),="main", and the="true"React serializes a bare JSX prop (<div data-platform-content-zoom-root />) to. Write the empty value in static markup and the bare prop in JSX; either way the area ismain. The platform's injected stylesheet applieszoom: var(--platform-content-zoom-<area>)to it. A marker inside another marker is ignored — matched by neither the platform's stylesheet nor its report of the view's areas — so nesting never compounds one area's zoom into another's. A web view that renders no element with this attribute is not zoomed at all, unless core declares its web view type zoomable: it renders at 100 % content zoom, its tab menu has no zoom items, and the zoom chords and Ctrl/⌘+wheel do nothing there. Interface scaling still applies to it.Extension code cannot import this value at runtime —
@papi/coreis types-only — so a web view writes the literal'data-platform-content-zoom-root'itself and keeps it equal to this constant.This constant is unstable and may change or disappear without notice