Re: [csswg-drafts] containment probably shouldn't apply to most SVG elements

Focusing on the original issue, [containment](

The `<svg>` element that defines an SVG canvas (that is, root element or a direct child of a non-SVG-namespaced element), _does_ have an outer CSS layout box, and so `contain: paint` would be useful. These always currently `contain: size` in practice, although that could change if we ever add auto-calculated `viewBox` based on the content bounding box. Pending resolution on proper behavior of positioned elements inside foreignObject, such an element.

For other SVG elements on which [`overflow` applies](, much the same points could be made, and so containment could make sense there, too.

For other SVG elements, which don't have boxes other than those defined by their contents or drawing commands, containment doesn't make sense without a lot of special definitions..

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at using your GitHub account

Received on Friday, 3 August 2018 22:03:45 UTC