Skip to content

[css-filter-effects] Clarify the filter region for CSS reference filters #13964

@smfr

Description

@smfr

The Filter Effects spec describes the filter region in terms of how it applies to SVG elements, but its behavior on CSS boxes is not well defined.

In particular, if the CSS box to which the filter is being applies has ink overflow, I can't find a definition of how the filter region is computed. The behavior that Gecko and Blink have is to use the ink overflow bounds for userSpaceOnUse, and border box for objectBoundingBox, but I don't believe that's actually written down.

Using the ink overflow box is also a little surprising, because it's not precisely defined. E.g. UAs differ on the exact extent of box-shadow, for example.

Basic test that has different behavior in WebKit and other browsers: https://codepen.io/smfr/pen/WbwJBNr

I intend to make WebKit match other browsers, but I think the spec needs edits to make the behavior explicit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions