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

ResizeSensor - Make current dimensions readable #209

Closed movedoa closed 6 years ago

movedoa commented 6 years ago

It would be great if there was a way to read the current dimensions of the resize sensor. (I guess it should be known?)

At the moment i need to read width and height again in the event, which costs time.

marcj commented 6 years ago

Sure, please provide a PR. Should be a easy fix 👍

movedoa commented 6 years ago

Will you merge #208 any time soon? I already use this version since it just works better (at least for me) I would base my pr on that

marcj commented 6 years ago

Has been added in https://github.com/marcj/css-element-queries/pull/213