Skip to content

[css-contain] content-visibility and SVG #9466

@rwlbuis

Description

@rwlbuis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions