web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

www.nhk.or.jp - layout is messed up

Open karlcow opened this issue 11 years ago • 4 comments

URL: http://www.nhk.or.jp/sp/ Browser / Version: Firefox 39.0 Operating System: Android Problem type: Layout is messed up

Steps to Reproduce

  1. Navigate to: http://www.nhk.or.jp/sp/

Expected Behavior: Receive a nice layout for the mobile site.

Actual Behavior: The site is using old deprecated CSS. There was a will to make it compatible across browsers. It would benefit to switch a more modern syntax of flexbox. You could use http://hallvord.com/temp/moz/cssfixme.php

Some examples:

Before:

div.sec_head_wrap {
    display: -webkit-box;  
    display: -moz-box;
    display: box;
    box-align:stretch;
    -webkit-box-align:stretch;
    -moz-box-align:stretch;
    margin:0 0 15px 0;

}
div#content h2 {
    color: #ffffff;
    font-weight: bold;
    background:#00a0f2;
    font-size:19px;
    position:relative;
    margin:0 0 0 0;
    box-flex:1;
    -webkit-box-flex:1;
    -moz-box-flex:1;
    padding: 13px 6px;
    line-height:30px;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    min-height:56px;

}

After:

div.sec_head_wrap{
    display: -webkit-box;
    display: -moz-box;
    display: box;
    box-align: stretch;
    -webkit-box-align: stretch;
    -moz-box-align: stretch;
    margin: 0 0 15px 0;
    display: flex;
    align-items: stretch;
}

div#content h2{
    color: #ffffff;
    font-weight: bold;
    background: #00a0f2;
    font-size: 19px;
    position: relative;
    margin: 0 0 0 0;
    box-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    padding: 13px 6px;
    line-height: 30px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    min-height: 56px;
    flex: 1 auto;
}

country: jp

karlcow avatar Apr 21 '15 07:04 karlcow

Mozilla Japan has contact, will contact them. Also #959 is NHK related issue.

kudodo avatar May 13 '15 09:05 kudodo

See #950 for the resolution.

Adding as a candidate for Whitelisting https://bugzilla.mozilla.org/show_bug.cgi?id=1162245

karlcow avatar Jun 15 '15 07:06 karlcow

fixed by layout.css.prefixes.webkit;true (it still needs UA override)

karlcow avatar Feb 17 '16 06:02 karlcow

See https://webcompat.com/issues/959#issuecomment-212183181 for latest updates.

karlcow avatar Apr 20 '16 00:04 karlcow