History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-2734
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: P3 P3
Assignee: Frisco Del Rosario
Reporter: Benjamin Shine
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Compiler should report a compilation error if css stylesheet is invalid

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

Time Tracking:
Not Specified

Severity: Minor
Runtime: N/A
Fix in hand: False


 Description  « Hide
This should trigger a compilation error, but does not:
<canvas>
   <stylesheet>this is not a valid stylesheet</stylesheet>
</canvas>

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Frisco Del Rosario - 19/Oct/06 02:55 PM
An example in two parts:

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>