diff --git a/registry/blocks/mk-callout-highlight/mk-callout-highlight.html b/registry/blocks/mk-callout-highlight/mk-callout-highlight.html index f1176a4629..626473ca1a 100644 --- a/registry/blocks/mk-callout-highlight/mk-callout-highlight.html +++ b/registry/blocks/mk-callout-highlight/mk-callout-highlight.html @@ -30,8 +30,20 @@ overflow: hidden; background: transparent; /* overlays footage or mk-background */ } - #mk-ch-box { + #mk-ch-center { + /* CSS centring. The box is a flex item of this full-frame wrapper, so its + place is laid out by the browser rather than measured from a DOM rect + taken before web fonts are ready. An explicit CONFIG.x / CONFIG.y turns + that axis into an edge offset (see the script). No pointer-events:none + here: it inherits to the word spans and the contrast audit skips them. */ position: absolute; + inset: 0; + display: flex; + align-items: center; + justify-content: center; + } + #mk-ch-box { + flex: none; /* max-content width, clamped by max-width; never shrunk */ font-family: var(--mk-font); font-weight: 500; letter-spacing: -0.015em; @@ -50,7 +62,9 @@ data-width="1920" data-height="1080" > -
+
+
+