Underline masks don't respect `user-select` CSS
krilnon opened this issue · comments
Kyle Murray commented
Adam Schwartz commented
Hey @krilnon this is a great catch. We treat these cases as yet another grouping within renderStyles
and issue specific styles for ::selection
(or abort) whenever a SmartUnderline location
or its children do not allow selection. Unfortunately though in the default case (SmartUnderline.init({ location: '' })
) this would require running getComputedStyle
on every element of the page, which I think is probably too expensive for the gains we would get here. Thanks again for reporting but I’m going to close this as wont fix.
Kyle Murray commented
No worries; thanks for taking a look!