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

ponpare.jp - prefixed transition code hides content when opening yellow menu

Open hallvors opened this issue 11 years ago • 20 comments

URL: http://ponpare.jp/kanto Browser / Version: Firefox Mobile 26.0 Operating System: Android Problem type: Layout is messed up

Steps to Reproduce I'm pretty sure this is a problem related to -webkit- code used in transitions. See for example this method which makes no attempt at creating cross-browser or standards-compatible transition code:

// トランジションのCSSのためのオブジェクトを生成する
function createTransitions(left, top) {
    var translateValues = (left === "" || top === "") ? "" : "translate(" + createPxString(left) + ", " + createPxString(top) + ")";
    var transitionPropertyValue = (left === "" || top === "") ? "" : "transform";
    var transitionDurationValues = (left === "" || top === "") ? "" : "0.3s";
    var transitionTimingValues = (left === "" || top === "") ? "" : "ease-out";
    return {
        '-webkit-transform': translateValues,
        '-webkit-transition-property': transitionPropertyValue,
        '-webkit-transition-duration': transitionDurationValues,
        '-webkit-transition-timing-function': transitionTimingValues
    }
}

hallvors avatar Apr 28 '15 12:04 hallvors

(This site has a lot of -webkit- code in their CSS. I'm surprised it renders as well as it does..)

hallvors avatar Apr 28 '15 12:04 hallvors

Another issue is the ugly white blocks over the menu dropdowns:

menu

For whatever reason, there's an explicit -moz-linear-gradient (but no -webkit- counterpart) setting that. Suggested fix would be to just remove the rule from iphone.css. It's not doing anything in WebKit browsers.

ul.accordion01 > li > p {
    background: transparent -moz-linear-gradient(center top , #EEE, #EEE) repeat scroll 0px 0px;
    width: 128px;
}

miketaylr avatar Apr 29 '15 17:04 miketaylr

Mozilla Japan will contact them.

kudodo avatar May 13 '15 10:05 kudodo

I asked contact person to introduce the developer of this site.

chikoski avatar May 19 '15 02:05 chikoski

Teh developers of this site agreed to fix this issue. Now they are considering its schedule.

chikoski avatar May 22 '15 00:05 chikoski

in blink

capture d ecran 2016-02-08 a 10 57 21

In Firefox with webkit prefs set to false

screen shot 2016-02-08 at 10 58 35

In Firefox with webkit prefs set to true screen shot 2016-02-08 at 10 59 08

karlcow avatar Feb 08 '16 01:02 karlcow

We can see that the aliasing is not solving everything. There are issue for the drop-down.

<div id="fixMenuArea">
                <div class="gnavi" id="areaNavi">
                    <ul class="accordion01">
                        <li>715<br><span>チケット</span></li>
                        <li class="accordion01Header">
                            <p class="selectedArea"><span>関東</span></p>
                        </li>
                        <li>

                            <select class="sortOrder" id="sortOrderHeader" style="text-overflow:ellipsis"><option value="0">ジャンル</option><option value="1">グルメ</option><option value="1_1">└和食</option><option value="1_2">└洋食・西洋料理</option><option value="1_3">└中華</option><option value="1_4">└アジア・エスニック</option><option value="2">旅行</option><option value="2_5">└ホテル</option><option value="2_6">└旅館</option><option value="2_7">└旅行(その他)</option><option value="3">レジャー・イベント</option><option value="4">ヘア・ネイル・まつげ</option><option value="4_9">└ヘアサロン</option><option value="4_10">└ネイル・まつげ</option><option value="5">リラク・エステ</option><option value="5_11">└リラクゼーション</option><option value="5_12">└エステ</option><option value="6">レッスン・フィットネス</option><option value="6_13">└通学レッスン</option><option value="6_14">└通信講座</option><option value="6_15">└フィットネス</option><option value="6_16">└レッスン(その他)</option><option value="7">宅配ショッピング</option><option value="7_17">└ファッション</option><option value="7_18">└美容・コスメ</option><option value="7_19">└家電・PC周辺機器</option><option value="7_20">└食品・飲料</option><option value="7_21">└雑貨・インテリア他</option><option value="8">健康診断・医療美容</option><option value="9">生活サービス・割引券</option><option value="9_23">└生活サービス</option><option value="9_24">└割引券</option></select>


                        </li>
                        <li><p id="fineSearchButton">もっと<br>絞り込む</p></li>
                    </ul>
                </div><!--/gnavi end-->
                <ul class="areaSelectAccordion">
                    <div class="areaList"><div class="listHeader"><span>近隣のエリア</span></div><a href="http://ponpare.jp/kanto/">関東すべて</a><a href="http://ponpare.jp/tokyo/">東京都すべて</a><a href="http://ponpare.jp/shinjyuku/"><div class="sarea">新宿・高田馬場・中野・吉祥寺</div></a><a href="http://ponpare.jp/ikebukuro/"><div class="sarea">池袋・神楽坂・赤羽</div></a><a href="http://ponpare.jp/shibuya/"><div class="sarea">渋谷・青山・自由が丘</div></a><a href="http://ponpare.jp/shinagawa/"><div class="sarea">恵比寿・目黒・品川</div></a><a href="http://ponpare.jp/roppongi/"><div class="sarea">赤坂・六本木・麻布</div></a><a href="http://ponpare.jp/ginza/"><div class="sarea">銀座・新橋・東京・上野</div></a><a href="http://ponpare.jp/machida/"><div class="sarea">立川・町田・八王子他</div></a><a href="http://ponpare.jp/kanagawa/">神奈川県すべて</a><a href="http://ponpare.jp/yokohama/"><div class="sarea">横浜</div></a><a href="http://ponpare.jp/kawasaki/"><div class="sarea">川崎・湘南・箱根他</div></a><a href="http://ponpare.jp/chiba/">千葉</a><a href="http://ponpare.jp/saitama/">埼玉</a><a href="http://ponpare.jp/gunma/">群馬</a><a href="http://ponpare.jp/tochigi/">栃木</a><a href="http://ponpare.jp/ibaraki/">茨城</a></div><div class="areaList"><div class="listHeader"><span>その他のエリア</span></div><a href="/doc/iphone/zenkoku/">エリア一覧</a></div>

                </ul>
            </div>

screen shot 2016-02-08 at 11 00 32

ah interesting the ugly background is created by

ul.accordion01 > li > p {
    background: -moz-linear-gradient(center top , #EEEEEE, #EEEEEE) repeat scroll 0 0 transparent;
    width: 128px;
}

Then the issue with the icon being a button is

#areaNavi select {
    padding-right: 10px;
    margin-right: 0;
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    height: 32px;
    line-height: 32px;
    text-indent: 0px;
    border: 0px;
    background: url("/iphone/img/icon_sort.png") no-repeat scroll 100% 50% transparent !important;
    background-size: 7px 9px !important;
    width: 80px !important;
    color: #FFF;
    font-weight: bold;
    font-size: 11px;
}

ping @dholbert @miketaylr

karlcow avatar Feb 08 '16 02:02 karlcow

in the other li elements appearance is not defined, so we get the icon. But when -moz-appearance is defined, we do not see the background-image. It seems blink always show the background-image.

For the other one, nothing can really fix this on our side. There's a remaining bogus gradient.

@chikoski could you contact them again so we can fix these issues.

karlcow avatar Feb 08 '16 02:02 karlcow

ping @dholbert

Let me know if you have any specific questions. It looks like you may have diagnosed stuff already?

(Also, for the record, my android Firefox browser doesn't show the downarrow-button that's shown in your screenshot. But I do see a "duplicate" black downarrow [without a gray background]. I don't know offhand how best to hide that from a <select>. It looks like -moz-appearance:button does hide the downarrow on Desktop, but does not on Android.)

dholbert avatar Feb 08 '16 19:02 dholbert

I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1246727 on an issue with <select> elements and downarrow-hiding on Firefox for Android. That may be the root of the -moz-appearance issue here (at least, the way it's manifesting for me); not sure.

dholbert avatar Feb 08 '16 19:02 dholbert

Ok thanks @dholbert.

For Ponpare Web developers (ping @kudodo )

In http://ponpare.jp/iphone/css/iphone.css

ul.accordion01 > li > p {
    background: -moz-linear-gradient(center top , #EEEEEE, #EEEEEE) repeat scroll 0 0 transparent;
    width: 128px;
}

DELETE: background: -moz-linear-gradient(center top , #EEEEEE, #EEEEEE) repeat scroll 0 0 transparent;

and in http://ponpare.jp/iphone/css/finesearch_follow.css

#areaNavi select {
    padding-right: 10px;
    margin-right: 0;
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;
    height: 32px;
    line-height: 32px;
    text-indent: 0px;
    border: 0px;
    background: url("/iphone/img/icon_sort.png") no-repeat scroll 100% 50% transparent !important;
    background-size: 7px 9px !important;
    width: 80px !important;
    color: #FFF;
    font-weight: bold;
    font-size: 11px;
}

CHANGE

-moz-appearance: button; by -moz-appearance: none;

karlcow avatar Feb 09 '16 01:02 karlcow

Current rendering in Firefox Android. ponpare-android

karlcow avatar Feb 09 '16 01:02 karlcow

My only issue is that -moz-appearance: button; doesn't behave the same than -webkit-appearance: button; with background: url("/iphone/img/icon_sort.png") no-repeat scroll 100% 50% transparent !important;

karlcow avatar Feb 09 '16 01:02 karlcow

ok I guess I was able to reproduce the difference of behaviors. http://codepen.io/anon/pen/QyJMGx

On the left Gecko (Firefox), on the right WebKit (Safari)

capture d ecran 2016-02-09 a 10 29 56

karlcow avatar Feb 09 '16 01:02 karlcow

WebKit and Blink drops the -webkit-appearance: button when there is a background-image. @miketaylr

karlcow avatar Feb 09 '16 01:02 karlcow

We can see that the aliasing is not solving everything.

Yeah, aliasing appearance won't work probably in most instances right now (I'm guessing). You've already referenced the spec issue to figure out all the nuances of what the heck -webkit-appearance does, what of that Edge implements, how Gecko does it and if there's some synergy we can leverage between the three, etc. :sparkles:

miketaylr avatar Feb 09 '16 04:02 miketaylr

I sent an email to their headquarter at Recruit Holdings. Reference number:160518-000712

karlcow avatar May 18 '16 09:05 karlcow

Issue is still there in latest Firefox Nightly 54.0a1 (2017-02-06) (64-bit)

karlcow avatar Feb 07 '17 06:02 karlcow

I wonder if @eiryu can help us find the right person at @recruit for solving this issue.

karlcow avatar Feb 07 '17 06:02 karlcow

This issue is fixed. The design has completely changed.

karlcow avatar Aug 02 '17 01:08 karlcow