
|
If you were logged in you would be able to see more operations.
|
|
|
| Severity: |
Minor
|
| Fixed in Change#: |
5,322
|
| Runtime: |
N/A
|
| Fix in hand: |
False
|
|
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;
}
|
|
Description
|
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;
}
|
Show » |
|
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.