marcj / css-element-queries

CSS Element-Queries aka Container Queries. High-speed element dimension/media queries in valid css.
http://marcj.github.io/css-element-queries/
MIT License
4.27k stars 487 forks source link

Pass current size to callback function #212

Closed movedoa closed 6 years ago

movedoa commented 6 years ago

This fixes #209 and is based on PR #208 (Because with this, the correct size is available which is not true in the current master)

This passes an object with width and height properties to the callback function.

Btw. this is my first time working with github and git, so sorry in advance ;-)

marcj commented 6 years ago

merged in https://github.com/marcj/css-element-queries/pull/213