- From: Sanket Joshi via GitHub <sysbot+gh@w3.org>
- Date: Fri, 20 Dec 2019 06:27:59 +0000
- To: public-css-archive@w3.org
@frivoal After thinking some more about this (particularly in regard the scenarios we discussed today), I'm starting to wonder if we really need to support inline styling of highlights as part of css-highlight-api-1? The .style property provides a nice convenience, but styling with ::highlight seems generally good enough. Additionally, in event scenarios, authors likely want to change the style for one range, in which case setting .style on an entire group isn't helpful. Instead, the author will probably add the range to a different highlight and style that. Pulling .style out would allow us to simplify the cascade interactions for this spec and we wouldn't need to depend on the outcomes of [CSSPseudoElement](https://www.w3.org/TR/css-pseudo-4/#cssom). Additionally, once CSSPseudoElement does support .style and its scope expands to non-tree abiding pseudos, we would be able to inline style highlight pseudos in the same way as other pseudos. -- GitHub Notification of comment by sanketj Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4588#issuecomment-567806835 using your GitHub account
Received on Friday, 20 December 2019 06:28:01 UTC