3 ms·
What exactly is "dangerous" about this? The functionality is pretty straightforward - it just creates a parent element of the correct width/height around an ele
by ecaroth 10y ago
What exactly is "dangerous" about this? The functionality is pretty straightforward - it just creates a parent element of the correct width/height around an element that dictates the original elements height, and then resizes the inside one proportionately as needed for responsiveness (using CSS only).
- johnhenry 10y ago"Dangerous" was the wrong word, and I should have expanded further. Also, it appears as though my use case isn't specifically for what this is designed, so I take that back. I'm thinking of the case in which this may be useful to modify older complex sites where chosen selectors might cause unexpected results. Apologies.
- jakiestfu 10y agoWhat is your use case?
- yowainwright 10y agoReframe.js is written the way that it is (to do 1 thing simply) to put the power back in the hands of the asset owner. This approach was chosen over trying to solve all ~all of the things~.