From https://drafts.csswg.org/resize-observer/#api, > content-box : size of content area as defined in CSS2. From https://drafts.csswg.org/css-box-3/#content-area >  So what makes you think that padding is included? ```js var el = document.createElement("div"); el.style.width = "50px"; el.style.padding = "10px"; document.body.appendChild(el); new ResizeObserver(entries => { alert(entries[0].contentBoxSize.inlineSize); // 50 }).observe(el); ``` -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4583#issuecomment-565538575 using your GitHub accountReceived on Friday, 13 December 2019 17:47:56 UTC
This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC