Re: [csswg-drafts] [css-highlight-api] Need clarification on expected default values for style properties (#6375)

Since ::highlight targets author-defined highlights rather than UA-defined highlights, I don't think UAs should define any styles for ::highlight in their default stylesheets. It's also actually not possible to do this since ::highlight requires a highlight name to be passed and there's no way to write a rule that targets all ::highlight pseudos.

The default styles should just be inherited from the originating element. I do agree that we should mention this explicitly in the spec though.

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


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

Received on Friday, 11 June 2021 06:44:53 UTC