Skip to content

Commit

Permalink
Update master
Browse files Browse the repository at this point in the history
  • Loading branch information
urazkines committed Jul 12, 2012
1 parent a16c9f7 commit c6ebf28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions feature-detects/css-lastchild.js
Expand Up @@ -2,6 +2,7 @@
// https://github.com/Modernizr/Modernizr/pull/304


Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function(elem) {
return elem.lastChild.offsetWidth > elem.firstChild.offsetWidth;
}, 1);
Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function (elem) {
var lastchild = Modernizr.addTest('lastchild', elem.lastChild.offsetWidth > elem.firstChild.offsetWidth);
}, 2);

0 comments on commit c6ebf28

Please sign in to comment.