weather.yahoo.co.jp - layout is messed up
URL: http://weather.yahoo.co.jp/weather/zoomradar/ Browser / Version: Firefox 37.0.2 Operating System: Android Problem type: Layout is messed up
Steps to Reproduce
- Navigate to: http://weather.yahoo.co.jp/weather/zoomradar/
- …
Expected Behavior: Should display in full screen.
Actual Behavior: See screen shot. It is squeezed. Country : JP

There are issues with webkitcss and old css syntax for flexbox.
.listRowlink .triple {
display: -webkit-box;
display: -moz-box;
display: -ms-box;
display: box;
overflow: hidden;
}
These will have to be fixed. But somehow I have the feeling that the issue with the size of the map might be due to JS. Let see:
a0 = function () {
var a6,
a8,
a9 = 0,
a7 = navigator.userAgent,
ba = (window.innerHeight > window.innerWidth);
if (a7.indexOf('Android') !== - 1) {
if (a7.indexOf('Chrome') !== - 1) {
a6 = window.innerHeight;
a8 = a6 - $('.headerMenu').height() - $('#slideCtrl').height()
} else {
a6 = window.outerHeight / window.devicePixelRatio;
a8 = a6 - $('.headerMenu').height() - $('#slideCtrl').height()
}
} else {
if (a7.indexOf('iPhone') !== - 1) {
if (a7.indexOf('Safari') !== - 1) {
if (a7.indexOf('CriOS') !== - 1) {
a6 = $(window).height();
a8 = a6 - $('.headerMenu').outerHeight() - $('#slideCtrl').outerHeight()
} else {
if (a7.match(/OS (7|8)/i)) {
a6 = window.innerHeight;
a8 = a6 - $('.headerMenu').outerHeight() - $('#slideCtrl').outerHeight()
} else {
if (ba) {
a9 = 64
} else {
a9 = (window.innerHeight > 300) ? 0 : 52
}
a6 = ba ? screen.height : screen.width;
a8 = a6 - $('.headerMenu').outerHeight() - $('#slideCtrl').outerHeight() - a9
}
}
} else {
a6 = $(window).height();
a8 = a6 - $('.headerMenu').outerHeight() - $('#slideCtrl').outerHeight()
}
} else {
if (a7.indexOf('iPad') !== - 1) {
a6 = window.innerHeight;
a8 = a6 - $('.headerMenu').outerHeight() - $('#slideCtrl').outerHeight()
} else {
a6 = $(window).height();
a8 = a6 - $('.headerMenu').outerHeight() - $('#slideCtrl').outerHeight()
}
}
}
$('#map').height(a8);
F.updateSize();
As we are not Chrome, we get
a6 = window.outerHeight / window.devicePixelRatio;
a8 = a6 - $('.headerMenu').height() - $('#slideCtrl').height()
which gives 258.6666666666667
Chrome gets
a6 = window.innerHeight;
a8 = a6 - $('.headerMenu').height() - $('#slideCtrl').height()
which is 380.
If we force this size on
<div style="position: relative;
overflow: hidden;
background: rgb(241, 241, 241) none repeat scroll 0% 0%;
height: 380px;"
id="map">
…
</div>
We get the right size of the map. I'm not sure why they decided to treat differently Chrome and other Android browsers.
This code will fail also for many other browsers.
Mozilla Japan has good relationships with Yahoo! Japan. Setting as contactready
Mozilla Japan will contact Yahoo! Japan soon. Including other issues related to Yahoo! Japan. #1019, #1015,#1012,#1017,#1018,#1088,#1023,#1020,#1087, and https://bugzilla.mozilla.org/show_bug.cgi?id=956972
FIXED.