w3c / w3c/csswg-drafts

[css-masking] "object bounding box" in SVG is the content-box, but UAs use the border box on CSS boxes

Open
#6,796 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

fx-masking-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

For transform-box and the geometry box argument to clip-path, fill-box maps to object bounding box for SVG elements. For CSS boxes, fill-box maps to the content box, which makes me think that "object bounding box" should map to the content box. However, browsers seem to map to the border box.

So we have ambiguity about whether "object bounding box" for CSS boxes in general should be the 'fill-box or content-box.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked CSS Transforms and CSS Masking definitions, then compare how they describe “object bounding box,” “fill-box,” and “content-box” for CSS boxes. Check the reported browser behavior and determine the normative clarification needed so the specification unambiguously defines the mapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.