Re: [csswg-drafts] [resize-observer] device-pixel-border-box size (#3554)

Yes. device-pixel-content-size will be an option, and the size will be reported on ResizeObserverEntry. Size could be defined as:

    interface ResizeObserverSize {
        readonly attribute unrestricted double inlineSize;
        readonly attribute unrestricted double blockSize;
    } ;

Side note: #3673 discussed how to handle fragments. Current resolution is that the sizes will be reported as an array. ResizeObserverEntry per spec would look like this:

    {
        target: Element
        contentRect: {....}
        devicePixelContentSize: [{ inlineSize: ..., blockSize: ... }]
    }


-- 
GitHub Notification of comment by atotic
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3554#issuecomment-540829195 using your GitHub account

Received on Thursday, 10 October 2019 22:44:58 UTC