- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Fri, 13 Dec 2019 06:46:24 +0000
- To: public-css-archive@w3.org
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-highlight-api] triggering restyling/repainting == The properties controlled by the [`::highlight()`](https://drafts.csswg.org/css-highlight-api-1/#custom-highlight-pseudo) pseudo cannot affect layout, so there's not going to be a full reflow when something change, but they can still cause visual changes, so we need to be clear about when a re-computation of styles and a repaint happen. In addition to DOM changes that would cause a restyling anyway, the following can cause a need for restyling/repainting: * adding or removing a HighlightRangeGroup to CSS.highlights * adding or removing a range to a HighlightRangeGroup in CSS.highlights * Changing the boundary points of a range in a HighlightRangeGroup in CSS.highlights * Changing the priority of a HighlightRangeGroup in CSS.highlights * Changing the style property of a HighlightRangeGroup in CSS.highlights Are any or all of things things synchronously triggering a restyle/repaint? Probably not, but what should the spec say. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4596 using your GitHub account
Received on Friday, 13 December 2019 06:46:25 UTC