- From: Gérard Talbot <www-style@gtalbot.org>
- Date: Thu, 30 Nov 2017 14:46:42 -0500
- To: Thomas Rosenau <rosenau@seitenbau.com>
- Cc: W3C www-style mailing list <www-style@w3.org>
Le 2014-01-26 5:43, Thomas Rosenau a écrit : > Citing from http://dev.w3.org/csswg/css-box/ > > Section 19.1: > > The space taken up by the scrollbars affects the computation of the dimensions in the rendering model. > > Does it? How so? > The reason I'm asking is because I observe different behaviour in > Firefox/Chrome: > > <div style="width:20px;padding:20px;overflow:scroll"></div> > <script> > console.log(getComputedStyle(document.querySelector('div')).width); > </script> > > Firefox returns '20px', while Chrome returns '5px' (with scrollbars > being 15px wide) > Which one is correct? [snipped] I filed this issue: Issue 790554: getComputedStyle(objElem).width must not be affected by presence (or absence) of vertical scrollbar https://bugs.chromium.org/p/chromium/issues/detail?id=790554 Gérard
Received on Thursday, 30 November 2017 19:47:19 UTC