Re: [csswg-drafts] [css-pseudo] highlights and color:currentColor (#6818)

* @emilio is unhappy with color:currentColor having a special case for highlight, and wonders if we can instead reconcile things by making ::selection inherit from ::target-text and so on (such that currentColor=inherit again)
* @frivoal suggests returning the first value if there are multiple colors throughout the ::selection, but what if there is nothing selected?
* @emilio suggests making gCS(::selection) pretend that the whole element is selected but not highlighted by anything else, regardless of actual highlight ranges, i think?
    * (@delan this would also solve the potential privacy leak where ::selection exposes colors from ::spelling-error or ::grammar-error)

-- 
GitHub Notification of comment by delan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6818#issuecomment-989050151 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 8 December 2021 18:07:29 UTC