Re: [csswg-drafts] [css-highlight-api] Inline styles for Highlight should apply on top of styles provided by ::highlight (#4588)

That makes sense to me. The #4607 Pull Request already greatly reduces the coupling, as after it, basically all that's left regarding style in the css-highlight-api spec is:
* a mention that `CSSPseudoElement.style` exists
* a requirement that `Element.pseudo()` accepts `"::highlights()"`
* an example

But indeed, the style attribute is a mere convenience, and it's not critical to the custom highlight api, so we could go further and drop it entirely from the spec, and just wait on css-pseudo defining the OM-based style attribute.

What would you rather do?

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

Received on Friday, 20 December 2019 06:40:59 UTC