Is there a way to detect browser support for background-attachment: fixed?
Edit: Although this feature is widely supported on desktop browsers it is poorly supported
Support for any CSS property value can be detected via following steps:
DIV);style DOM property (element.style.backgroundAttachment in your case) to value to check (fixed in your case);style value with specified string.Something like this in your case:
var elem = document.createElement('div');
elem.style.backgroundAttachment = 'fixed';
var isSupported = 'fixed' === elem.style.backgroundAttachment;