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

Focusing on the original issue, [containment](https://drafts.csswg.org/css-contain/):

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](https://svgwg.org/svg2-draft/render.html#OverflowAndClipProperties), 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 https://github.com/w3c/csswg-drafts/issues/2987#issuecomment-410388088 using your GitHub account

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