mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
20 lines
590 B
JavaScript
20 lines
590 B
JavaScript
/*!
|
|
{
|
|
"name": "CSS general sibling selector",
|
|
"caniuse": "css-sel3",
|
|
"property": "siblinggeneral",
|
|
"tags": ["css"],
|
|
"notes": [{
|
|
"name": "Related Github Issue",
|
|
"href": "https://github.com/Modernizr/Modernizr/pull/889"
|
|
}]
|
|
}
|
|
!*/
|
|
define(['Modernizr', 'createElement', 'testStyles'], function(Modernizr, createElement, testStyles) {
|
|
Modernizr.addTest('siblinggeneral', function() {
|
|
return testStyles('#modernizr div {width:100px} #modernizr div ~ div {width:200px;display:block}', function(elem) {
|
|
return elem.lastChild.offsetWidth === 200;
|
|
}, 2);
|
|
});
|
|
});
|