LPP-2618, combined with an example from Gregor, started an inquiry, which led me to something weird. 

Take these three rules:

        /* rule 1, specificity 10 */
        [name="thename"] {
            testdata: "i am thename";
        }
       
        /* rule 2, specificity 1 */
        testclass {
            testdata: "i am testclass";
        }
       
        /* rule 3, specificity 1 */
        view {
            testdata: "i am view";
        }

And this view structure:

        <view name="thename">
            <testclass id="edgar">
                <attribute name="testdata" value="$style{'testdata'}" />
            </testclass>   
        </view>


What should the value of edgar.testdata be? 
Intuitively, I want edgar.testdata to be "i am testclass". What *edgar* is should matter more than one of edgar's ancestors' attributes. 
That's not what happens. 
edgar.getAttribute("testdata") returns "i am view"

All the nearby screw cases I can think of seem to be handled the way I expect them to be, but inconsistently with the edgar case. 

I'm attaching a tar with the test cases, and a couple other test cases I've been working on. Adam and Gregor -- what do you think? Am I perseverating here, or is this really a sign of a problem that we care about? 

This test is in 

Attachment: styletests.tar.gz
Description: GNU Zip compressed data


_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to