3 ms·
> It's used for style & design, but also for functionality So true. I once searched days for a broken event handler in JavaScript, just to find out that somew
by k__ 10y ago
> It's used for style & design, but also for functionality
So true.
I once searched days for a broken event handler in JavaScript, just to find out that somewhere deep inside a CSS file, someone disabled events for the element.
Didn't even know CSS had that power.
- extra88 10y ago> inside a CSS file, someone disabled events for the element. I never heard of that. I just looked up CSS pointer-events [0], is that what you're referring to or are there others? [0] http://caniuse.com/#feat=pointer-events http://caniuse.com/#feat=pointer-events
- k__ 10y agoYes, this disabled the clicks on an element.
- signal11 10y agoI really didn't know CSS could do that. http://caniuse.com/#search=css%20pointer-events http://caniuse.com/#search=css%20pointer-events for any one whose mind was blown by this.
- k__ 10y agoThe idea seems to be, that designers have more flexibility. You can layer elements how you like and then, in the end, disable all the elements "in the front" of the element that you want to have "clickable".
- talmand 10y agoUntil one uses it, it might be hard to realize how incredibly useful it is. From both CSS and JS perspectives. I rarely use it simply because of older IE lacking support.