html - linear-gradient (arrow/triangle) works only in google chrome -


this have tried:

http://codepen.io/helloworld/pen/dkgbf

please use google chrome watch pen because in chrome v28 linear-gradient (white triangle/arrow) works works not in ie10 or ff22 or safari 5.1.7 on windows.

this way looks in google chrome:

enter image description here

why work in google chrome?

  <ul class="_7/5z" style="display: table; height: 100%; float: left; font-size: 7px;background:green;">                 <li style="list-style: none;background:blue; display: table-row;">                      <div style="height: 99%;padding-left:1%;padding-top:1%;">                          <div style="background: red; width: 50%; height: 100%; float: left;">                             <div style="height: 100%;" class="segmenttriangle"></div>                         </div>                          <div class="fontsize vertical-center" style="font-size:20px;height: 100%; background: yellow; width: 50%; float: left;">33333                         </div>                      </div>                 </li>              </ul>    body, html {     width: 100%;     height: 100%;      font-family: arial;     /*overflow: hidden;*/ }  * { /* every element has border or padding value puts value inside div */     box-sizing: border-box;     -moz-box-sizing: border-box;     padding: 0;     margin: 0; }  ._7\/5z {     width: 17.50%; }  .horizontal-right {     text-align: right; }  .horizontal-center {     text-align: center; }  .vertical-center {     vertical-align: middle; }  .segmenttriangle {     width: 100%;     height: 100%;     left: 0px;     top: 0px;     background: linear-gradient(to right bottom, white 50%, transparent 50%);       background: -o-linear-gradient(to right bottom, white 50%, transparent 50%);      background: -moz-linear-gradient(to right bottom, white 50%, transparent 50%);      background: -webkit-linear-gradient(to right bottom, white 50%, transparent 50%);      background: -ms-linear-gradient(to right bottom, white 50%, transparent 50%);  } 

update

more information:

i using knockoutjs data-binding data html. imagine ul-tag has foreach-binding , inside ul means every li-tag , content repeated 7 times because thats requirement. have updated init question code sample understand better. use code , make 7 copies of li-tag , content , paste inside ul-tag imitate foreach loop see latest display:table-cell workaround breaks everything. hope helps. :)

see sample: http://codepen.io/helloworld/pen/gfeqk


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -