In gecko the selection that `find-in-page` and `window.find` use is the same, we just paint it with a different style in the find-in-page case. Also there's another case which is the 'highlight-all' option, in which case we do use a different selection, but with yet another set of colors. So there are three cases here: * Regular selection / regular color (`window.find`). * Regular selection / find-in-page color (find-in-page primary match). * Find-in-page selection. In gecko the find-in-page color is called `attention` style (I think it's used also for a couple other things), fwiw. This is somewhat similar to the discussions we've had about styling the inactive window selection, where it seemed that people preferred a pseudo-class that applied to the existing `::selection` pseudo somehow rather than a whole new pseudo-element, but I could be misremembering. -- GitHub Notification of comment by emilio Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5233#issuecomment-663021478 using your GitHub accountReceived on Thursday, 23 July 2020 13:55:40 UTC
This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC