w3c / w3c/csswg-drafts

[resize-observer] device-pixel-content-box should be in integral device pixels for SVG

Open
#5,014 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

resize-observer-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Calculations for the device-pixel-content-box size for SVG elements is the same as content-box and border-box in https://www.w3.org/TR/resize-observer/#calculate-box-size.

Instead, it should be the bounding-box dimensions but in integral device pixels.

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

Start with the linked Resize Observer specification section, especially the calculation of box size for SVG elements. Compare the current device-pixel-content-box rule with the requested bounding-box dimensions in integral device pixels; the work is done when the specification clearly defines that behavior for SVG.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.