w3c / w3c/csswg-drafts

[resize-observer] Why are inlineSize and blockSize unrestricted?

Open
#7,623 0 comments 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.