var mbFontsizeWidthCalcBug = (function(doc) {
var body = doc.body;
var span = doc.createElement('span');
var width = {};
var i = 10;
span.style.position = 'absolute';
span.style.visibility = 'hidden';
span.innerHTML = 'あ';
body.appendChild(span);
for (;i < 13; i++) {
span.style.fontSize = i + 'px';
width[i] = span.offsetWidth;
}
body.removeChild(span);
body = span = null;
return (width[12] === width[11] && width[11] - 1 === width[10]);
})(document);
var msg = document.getElementById("msg");
if (mbFontsizeWidthCalcBug) {
msg.innerHTML = 'フォントサイズの幅計算がおかしいブラウザです!';
}
else {
msg.innerHTML = '大丈夫だ、問題ない。';
}