🏠 New in Low Baseline Support: Selection composed ranges
August 19, 2025
The window.getSelection().getComposedRanges() method returns ranges that represent the current user selection, even if the selection spans across shadow tree boundaries.
Source features
api.Selection.getComposedRanges[mdn]