
|
If you were logged in you would be able to see more operations.
|
|
|
| Severity: |
Major
|
| Runtime: |
N/A
|
| Fix in hand: |
False
|
|
The following test program demonstrates a flaw in IE7 DHTML with the opacity of stacked views. Consider a shadow view that uses a partial opacity setting underneath another view to create a shadow effect. If the view containing the shadow view changes its opacity, then the topmost view(s) overlaying the shadow disappears in IE7 DHTML:
<canvas width="100%" height="100%" validate="false" debug="true" proxied="false" bgcolor="0x00aaaa">
<view width="300" height="100">
<view width="300" height="100" bgcolor="black" opacity="0.3"/>
<view width="150" height="50" bgcolor="red"/>
</view>
<button text="Click me" onclick="canvas.setAttribute('opacity', 0.50)"/>
</canvas>
In this test, the red view and the button disappear in IE7 DHTML when the button is clicked, instead of receiving 50% opacity. This works correctly in Firefox+Safari DHTML and in SWF.
|
|
Description
|
The following test program demonstrates a flaw in IE7 DHTML with the opacity of stacked views. Consider a shadow view that uses a partial opacity setting underneath another view to create a shadow effect. If the view containing the shadow view changes its opacity, then the topmost view(s) overlaying the shadow disappears in IE7 DHTML:
<canvas width="100%" height="100%" validate="false" debug="true" proxied="false" bgcolor="0x00aaaa">
<view width="300" height="100">
<view width="300" height="100" bgcolor="black" opacity="0.3"/>
<view width="150" height="50" bgcolor="red"/>
</view>
<button text="Click me" onclick="canvas.setAttribute('opacity', 0.50)"/>
</canvas>
In this test, the red view and the button disappear in IE7 DHTML when the button is clicked, instead of receiving 50% opacity. This works correctly in Firefox+Safari DHTML and in SWF. |
Show » |
|
<canvas width="100%" height="100%" validate="false" debug="true" proxied="false" bgcolor="0x00aaaa">
<simplelayout/>
<!-- This example hides the red box when the button is clicked in IE DHTML -->
<view width="300" height="100" name="root">
<view width="300" height="100" bgcolor="black" opacity="0.3"/>
<view width="150" height="50" bgcolor="red"/>
</view>
<button text="Click me" onclick="root.setAttribute('opacity', 0.50)"/>
<!-- By avoiding nesting views with opacity, we can get the same effect and it works in IE DHTML-->
<view width="300" height="100" name="container">
<view width="300" height="100" bgcolor="black" opacity="0.3"/>
<view width="300" height="100" name="root">
<view width="150" height="50" bgcolor="red"/>
</view>
</view>
<button text="Click me" onclick="container.root.setAttribute('opacity', 0.50)"/>
</canvas>