[csswg-drafts] [css-contain] content-visibility and SVG (#9466)

rwlbuis has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain] content-visibility and SVG ==
From my current interpretation content-visibility does not apply to most SVG elements since content-visibility applies to
"elements for which [size containment] can apply" (https://drafts.csswg.org/css-contain/#content-visibility)

and (size) contain has a special rule about applying to svg:
"In addition, in the case of [SVG2], the contain property only applies to svg elements that have an associated CSS layout box."
(https://drafts.csswg.org/css-contain/#contain-applies)

So, would that be just outer <svg> and <foreignObject> elements?

I am willing to write some WPT tests for this since I don't think this is actually tested on SVG elements at this time.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9466 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 13 October 2023 13:11:28 UTC