fmt(js): npm run fix on merge (#92034)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-08-22 03:38:21 +00:00
committed by GitHub
parent 8286c46502
commit fc7523ca31
2 changed files with 2 additions and 0 deletions
@@ -167,6 +167,7 @@ describe('serializeSelectionStructure', () => {
const host = armSelection(
'<p style="color: rgb(230, 237, 243); font-family: -apple-system, sans-serif">plain prose</p>'
)
const html = serializeSelectionStructure(window.getSelection()!, document)
// Generic family on the wrapper: resolves to each platform's own face,
@@ -174,6 +174,7 @@ export function selectionInkLuma(sel: Selection, doc: Document): number | null {
for (let i = 0; i < sel.rangeCount && lumas.length < MAX_PROBE_NODES; i++) {
const range = sel.getRangeAt(i)
const root = range.commonAncestorContainer
const walker = doc.createTreeWalker(
root.nodeType === 1 ? root : (root.parentElement ?? doc.body),
NodeFilter.SHOW_TEXT