
|
If you were logged in you would be able to see more operations.
|
|
|
OpenLaszlo
Created: 21/Sep/06 04:57 PM
Updated: 06/Nov/06 08:15 PM
|
|
| Component/s: |
LFC - CSS
|
| Affects Version/s: |
3.3.3
|
| Fix Version/s: |
3.4
|
|
| Severity: |
Minor
|
| Runtime: |
N/A
|
| Fix in hand: |
False
|
|
This should trigger a compilation error, but does not:
<canvas>
<stylesheet>this is not a valid stylesheet</stylesheet>
</canvas>
|
|
Description
|
This should trigger a compilation error, but does not:
<canvas>
<stylesheet>this is not a valid stylesheet</stylesheet>
</canvas> |
Show » |
|
Ex 1: A curly brace missing from the first rule declaration
<canvas height="500" width="500" debug="true">
<stylesheet>
#vBlue {
bgcolorBlue : "0x0000FF";
<!-- } -->
<!--With this curly commented out, the red view is not visible, though vRed.visible returns true-->
#vRed {
bgcolorRed : "0xFF0000";
}
</stylesheet>
<simplelayout axis="y" spacing="10"/>
<view id="vBlue" height="50" width="50" bgcolor="$style{'bgcolorBlue'}"/>
<view id="vRed" height="100" width="100" bgcolor="$style{'bgcolorRed'}"/>
<script>
Debug.write("Is blue view visible?", vBlue.visible);
Debug.write("Is red view visible?", vRed.visible);
</script>
</canvas>
Ex. 2: A curly brace missing from the second rule declaration
<canvas height="500" width="500" debug="true">
<stylesheet>
#vBlue {
bgcolorBlue : "0x0000FF";
}
#vRed {
bgcolorRed : "0xFF0000";
<!-- } -->
<!--With this curly commented out, the red view remains visible-->
</stylesheet>
<simplelayout axis="y" spacing="10"/>
<view id="vBlue" height="50" width="50" bgcolor="$style{'bgcolorBlue'}"/>
<view id="vRed" height="100" width="100" bgcolor="$style{'bgcolorRed'}"/>
<script>
Debug.write("Is blue view visible?", vBlue.visible);
Debug.write("Is red view visible?", vRed.visible);
</script>
</canvas>