W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

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

From: Aleksandar Totic via GitHub <sysbot+gh@w3.org>
Date: Thu, 10 Oct 2019 22:44:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-540829195-1570747495-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:54 UTC