1/** An auxiliary consumer needs an element's content inline size, without2 * subscribing to the block-size changes that layout can make in the same3 * ResizeObserver delivery. The host must establish a containing block.4 * CSS supplies the width; this helper never reads geometry.5 *6 * Observation contract: the unused axis stays zero. A target can depend on7 * its host or an ancestor changing arrangement, but never on a descendant's8 * changing height. Its two-level placement puts a direct member's target9 * below the enclosing Switcher's slot/requirement, so ResizeObserver can10 * redeliver it in that frame. Gap targets follow the same rule with one more11 * level beneath their selected primitive (see inspection.css). */12exportfunctioninlineObservation(host:HTMLElement): {13target:HTMLElement;14dispose():void;15} {16constwrapper=host.ownerDocument.createElement("span");17wrapper.dataset.observation="inline-size";18wrapper.setAttribute("aria-hidden", "true");19consttarget=host.ownerDocument.createElement("span");20target.dataset.observation="inline-target";21wrapper.append(target);22host.append(wrapper);23return { target, dispose: () =>wrapper.remove() };24}