W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

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

From: Sanket Joshi via GitHub <sysbot+gh@w3.org>
Date: Thu, 19 Dec 2019 00:25:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-567273190-1576715107-sysbot+gh@w3.org>
Yes, I definitely see inline styles for custom highlights working similar to how they do for DOM elements. In that sense, I agree we should try to explore making this work generically for all pseudo elements. Currently though, the CSSPseudoElement interface only supports ::before, ::after and ::marker, which are all pseudos that do not inherit styles from other pseudos and also do not apply across multiple elements. To make CSSPseudoElement work with the highlight pseudos (and possibly ::first-line), I think we have to define a new event path. And if we're doing this, we should make sure we define it in a way that works with highlight events as well. (I left a comment about this in the PR.)

GitHub Notification of comment by sanketj
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4588#issuecomment-567273190 using your GitHub account
Received on Thursday, 19 December 2019 00:25:10 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC