css-grid-polyfill icon indicating copy to clipboard operation
css-grid-polyfill copied to clipboard

box-sizing bug ?

Open raphaelgoetter opened this issue 10 years ago • 1 comments

Hello,

The doc says :

The whole polyfill is very sensitive to changes to the “box-sizing” property

In my codepens tests, the width / box-sizing calculated value went always wrong, even on initial layout, not only on changes :

  • http://codepen.io/raphaelgoetter/pen/BoYYvZ
  • http://codepen.io/raphaelgoetter/pen/JYppMV
  • http://codepen.io/raphaelgoetter/pen/WQMMQo
  • etc

EDIT : note that on each codepen, the grid-items appear out of their container, like absolute ou floated items.

raphaelgoetter avatar Jan 02 '16 13:01 raphaelgoetter

By sensitive I meant that many combinations yield incorrect results. Feel free to make a pull request fixing the computations whenever box sizing is non default

FremyCompany avatar Jan 03 '16 08:01 FremyCompany