On 04/06/2020 18:19, Vladimir Levin wrote:
> Style containment added by content-visibility is primarily caused by an
> edge case where counters inside a hidden element's subtree may affect
> counters outside of it. In order to implement optimizations that skip
> processing counters in the content of the element, we decided to put in
> style containment since that is exactly its intended use. In other
> words, style containment would prevent counters "leaking" outside of the
> contained element.
>
> I believe also Firefox implements <li> under <ol> with counters, and
> we've had some discussion
> in
https://github.com/whatwg/html/issues/4808 to see if that means that
> style containment should also reset the count of <li>s. We have plans in
> Chromium to implement <li>s with counters and in fact fix the counters
> as well (
crbug.com/990657 <
http://crbug.com/990657>)
>
> With regards to the current state of style containment, and whether it
> provides any optimization opportunities
> (
https://github.com/w3c/csswg-drafts/issues/3280), I'm of the opinion
> that it provides enough value in content-visibility to warrant continued
> support (others may, of course, disagree). This means that yes, I
> believe we should fix Chromium's implementation (i.e. fix the bugs that
> you filed:
crbug.com/882383 <
http://crbug.com/882383> and
>
crbug.com/882385 <
http://crbug.com/882385>, and the the one referenced
> above:
crbug.com/990657 <
http://crbug.com/990657>). However, I don't
> think this should block shipping this feature, since style containment
> is already shipped.
I didn't mean this should block anything, I was just wondering about
this relationship and the current plans regarding style containment.
Good to know you're planning to fix it.
Anyway I'd love to wait for the feedback from other vendors,
particularly Mozilla that has been providing valuable reviews on this
topic. I saw the changes on the spec to address their concerns, but it
would be nice to verify that they're happy with those changes.
> Let me know if addresses your questions
Yeah sure, thank you very much for your detailed reply.
Cheers,
Rego