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

Key: LPP-4063
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: -- --
Assignee: Frisco Del Rosario
Reporter: kathryn aaker
Votes: 0
Watchers: 2
Operations

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

CSS name attribute selector doesn't work in Flash 6

Created: 30/May/07 10:38 AM   Updated: 27/Sep/07 08:56 AM
Component/s: LFC - CSS
Affects Version/s: 3.4
Fix Version/s: RingDing (4.1)

Time Tracking:
Not Specified

Severity: Minor
Fixed in Change#: 5,322
Runtime: N/A
Fix in hand: False


 Description  « Hide
When I compile the following application for Flash 7 using OL 3.4.0, the second selector works as expected (x==100), but when I compile for Flash 6, only the first selector is applied, so x==300.

<stylesheet>
    text {
        x:300;
    }
    text[name="title"] {
        x:100;
    }
</stylesheet>


<text name="title" y="10" text="the title is here" resize="true"
    x="$style{'x'}"/>

I think it may have something to do with the "name" attribute, as if I use y="10" as the attribute selector, it works in Flash 6.

e.g.
text[y="10] {
  x:100;
}



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
kathryn aaker - 30/May/07 11:15 AM
Ok, I think I found the problem and have a fix.

In LzCSSStyle.js
line 101:

        var pprules = node.name ? this._nameRules[ node.name ] : null;

In Flash 6, node.name won't evaluate to true when it's a string value, so you have to change it to:

        var pprules = (node.name != null) ? this._nameRules[ node.name ] : null;

This seems to fix the issue both in my test case and my application.

Benjamin Shine - 05/Jun/07 02:47 PM

Frisco Del Rosario - 16/Jul/07 04:02 PM
Mamye asked me to verify this in 4.0.x, but Flash 6 issues do not pertain.