Cropped <object> viewport (240×150)
Intrinsic SVG size is 360×220. Click a node inside the SVG or use the focal controls above.
v157 ยท svg embedded content sizing
Why load an SVG in <object> instead of <img>? Because <object> keeps the SVG's internal DOM scriptable via contentDocument. In Chrome 157, you can now crop and pan an <object> schematic using CSS object-fit: cover (or none) and object-position: X% Y% while directly querying and highlighting nodes inside its contentDocument.
object-position & inspect live contentDocument SVG nodesSelect a subsystem preset or drag the X/Y focal sliders. The script updates object-position on the outer <object> element AND reaches into objectEl.contentDocument to highlight the selected SVG node and read its getBBox() coordinates.
<object> viewport (240×150)360×220. Click a node inside the SVG or use the focal controls above.
objectEl.contentDocument node readout// Panning the