HTML:
<div class="table" >
<div class="row" >
<span>Tb with DIV</span> <span>col2</span> <span>col3</span>
</div>
<div class="row" >
<span>col1</span> <span>col2 test</span> <span>col3</span>
</div>
<div class="row" > <span>col1</span> <span>col2</span> <span>col3 test</span>
</div>
</div>
<table>
<tr id="testRow">
<td>Tb with <'table'></td> <td>col2</td> <td>col3</td>
</tr>
<tr >
<td>col1</td> <td>col2 test</td> <td>col3</td>
</tr>
<tr >
<td>col1</td> <td>col2</td> <td>col3 test</td>
</tr>
</table>
CSS:
.table, table {
display:table;
/*
width:200px;
height:100px;
zoom:1;
*/
}
.row { display:table-row; }
.row, tr {
width:200px !important;
min-height:1px !important;
zoom:1;
white-space:nowrap;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
filter: alpha(opacity=20);
-moz-opacity:0.2;
-khtml-opacity: 0.2;
opacity: 0.2;
}
.row span, td {display:table-cell;padding: 5px;}
Javascript
$(function () {
console.log (document.getElementById('testRow2').currentStyle.hasLayout);
//$('.row, tr').fadeTo('fast',0.2);
});
Because the opacity is not working I should get 'false' in the console (for IE7&8), but the result is 'true'
Does the element truly 'hasLayout' BUT the opacity is not working for some other reason?
Although I doubt it, because not even jQuery can't set the opacity.