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

www.ntv.co.jp - layout is broken by old flexbox CSS syntax

Open karlcow opened this issue 11 years ago • 6 comments

URL: http://www.ntv.co.jp/sphone Browser / Version: Firefox 39.0 Operating System: Android Problem type: Layout is messed up

Steps to Reproduce

  1. Navigate to: http://www.ntv.co.jp/sphone

Expected Behavior: site displaying as for other browsers on mobile

Actual Behavior: The layout is messy because of the usage of old outdated WebKit CSS for flexbox and gradients. This can be easily fixed with: http://hallvord.com/temp/moz/cssfixme.php

Example in the footer.

/* global_footer
**********************************/
.footer_navigation01,.footer_navigation02,.footer_navigation03{
    display: box;
    display: -webkit-box;
    display: -moz-box;
    -webkit-flex-wrap:wrap;
    -moz-flex-wrap:wrap;
    flex-wrap:wrap;
    -webkit-flex-direction:row;
    -moz-flex-direction:row;
    flex-direction:row

}

.footer_navigation01 li,.footer_navigation02 li,.footer_navigation03 li{
    text-align:center;
    width:33%;
    box-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    border-top:1px solid #828282;
    border-bottom:1px solid #828282;
    margin-bottom:-1px;

}


.footer_navigation02 li,.footer_navigation03 li{box-align:center;-moz-box-align:center;-webkit-box-align:center;}

OR for example gradients on button.

.top_contents .more_btn{
    background: linear-gradient(top, #fdfdfd 0%,#e0e0e0 100%);
    background: -webkit-linear-gradient(top, #fdfdfd 0%,#e0e0e0 100%);
    background:-webkit-gradient(linear, left top, left bottom, color-stop(1%,#fdfdfd), color-stop(100%,#e0e0e0));
    background: -moz-gradient(top, #fdfdfd 0%,#e0e0e0 100%);
    border-radius: 30px;
    border:1px solid #CCC;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    padding:10px;
    text-align:center;
    display:block;
    margin:20px auto;
    width:50%;
    font-weight:700;
    color:#f18d00!important;
    font-size:1.5rem;

}

Note there was an intent to make it right but the values are wrong. To fix it is easy with:

    background: linear-gradient(to bottom, #fdfdfd 0%,#e0e0e0 100%);

country: jp

karlcow avatar Apr 21 '15 06:04 karlcow

Firefox Aurora

ntv-02-aurora

Firefox unprefixed build

ntv-02-unprefixed

karlcow avatar Apr 22 '15 06:04 karlcow

Mozilla Japan has contact, will contact them.

kudodo avatar May 13 '15 09:05 kudodo

@kudodo have they been contacted?

karlcow avatar Jun 18 '15 02:06 karlcow

I've sent a message via https://www.ntv.co.jp/staff/goiken/form.html. Waiting for response now.

kudodo avatar Jun 18 '15 02:06 kudodo

Thanks! :custard:

karlcow avatar Jun 18 '15 04:06 karlcow

fixed by layout.css.prefixes.webkit;true

Screenshot of the site issue

karlcow avatar Feb 17 '16 06:02 karlcow