Skip to content

[css-transform] the used value for border-box #999

@CJKu

Description

@CJKu

The css-transforms spec[1] said:

For SVG elements without an associated CSS layout box, the used value for border-box is view-box

Compare to clip-path geometry box[2], the used value for border-box is fill-box. Is there any special reason that we want them fallback to different value?

[1] transform box
https://drafts.csswg.org/css-transforms/#transform-box

For SVG elements without an associated CSS layout box, the used value for border-box is view-box.
For elements with an associated CSS layout box, the used value for fill-box and view-box is border-box.

[2] clip-path geometry box
https://drafts.fxtf.org/css-masking-1/#the-clip-path

For SVG elements without associated CSS layout box, the used value for content-box, padding-box, border-box and margin-box is fill-box.
For elements with associated CSS layout box, the used value for fill-box, stroke-box and view-box is border-box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions