[resize-observer] Why are inlineSize and blockSize unrestricted?
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
https://drafts.csswg.org/resize-observer-1/Overview.html#resizeobserversize
interface ResizeObserverSize {
readonly attribute unrestricted double inlineSize;
readonly attribute unrestricted double blockSize;
};
Why make them unrestricted? They are readonly, so they can't be set from a script. They are only set in calculate box size, and I don't think that can be NaN or infinity.
There is no other CSS spec using a readonly unrestricted attribute.
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 ResizeObserverSize definition and the linked “calculate box size” section in the Resize Observer specification. Compare the unrestricted attributes with other CSS specifications and determine whether the declaration needs clarification or a specification change; done means the question has a documented resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100