mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 23:21:04 +00:00
16 lines
457 B
JavaScript
16 lines
457 B
JavaScript
/*!
|
|
{
|
|
"name": "CSS HSLA Colors",
|
|
"caniuse": "css3-colors",
|
|
"property": "hsla",
|
|
"tags": ["css"]
|
|
}
|
|
!*/
|
|
define(['Modernizr', 'createElement', 'contains'], function(Modernizr, createElement, contains) {
|
|
Modernizr.addTest('hsla', function() {
|
|
var style = createElement('a').style;
|
|
style.cssText = 'background-color:hsla(120,40%,100%,.5)';
|
|
return contains(style.backgroundColor, 'rgba') || contains(style.backgroundColor, 'hsla');
|
|
});
|
|
});
|