Re: [csswg-drafts] [css-masking?] "object bounding box" needs to be better defined for CSS boxes (#5786)

>  " the tightest fitting rectangle aligned with the axes of that element's user coordinate system that entirely encloses it and its descendants." but for CSS this needs a tighter definition; it needs to specify whether that includes ink overflow (e.g. box-shadow), outlines, and how it interacts with overflow:hidden on the element.

The text in SVG2 could usefully be tightened up, but from memory of discussions many years ago, the SVG bounding box is the bound of the **geometry**. This means that it specifically excludes:

- the stroke, including the big excursions that can occur when the miter limit is poorly chosen on acute angles
- markers

There has in the past been discussion to define another bounding box, ink-based rather than geometric, which would include those items. There is clearly a need for both boxes.

To my mind, that means that for CSS, stroking and ink overflow should not be included. Or, again, that both options should be available.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5786#issuecomment-946769419 using your GitHub account


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

Received on Tuesday, 19 October 2021 14:15:43 UTC