[resize-observer] device-pixel-content-box should be in integral device pixels for SVG
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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