Skip to content

Commit

Permalink
Check for >=6 as chrome rounds down value when page is zoomed (#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanseddon authored and patrickkettner committed Jul 15, 2016
1 parent 053eab5 commit 49564a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion feature-detects/css/generatedcontent.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
!*/
define(['Modernizr', 'testStyles'], function(Modernizr, testStyles) {
testStyles('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}', function(node) {
Modernizr.addTest('generatedcontent', node.offsetHeight >= 7);
// See bug report on why this value is 6 crbug.com/608142
Modernizr.addTest('generatedcontent', node.offsetHeight >= 6);
});
});

0 comments on commit 49564a7

Please sign in to comment.