And you should probably add: http://www.w3.org/TR/css3-background/#border-radius

    <!-- The borderradius of the view -->
    <attribute name="borderradius" type="number" value="0" 
style="border-radius"/>
    <event name="onborderradius"/>
    <setter name="borderradius" args="radius">
        if (this.bordercolor != bordercolor) {
            this.bordercolor = bordercolor;
            this.setCSS('borderRadius', radius);
        }
        if (this.onbordercolor.ready) 
this.onbordercolor.sendEvent(borderradius);
    </setter>
    
I think there's still a bug with rounded corners and borders, but shouldn't we 
be able to set a borderradius to supporting rounding of corners?

Then: border-width or border-radius are just shorthands for for boder-*-radius. 
Are we going to support things like: border-radius: 2em 1em 4em / 0.5em 3em;
W3C CSS3 says: "If values are given before and after the slash, then the values 
before the slash set the horizontal radius and the values after the slash set 
the vertical radius. If there is no slash, then the values set both radii 
equally."
Would be support something like this?



@Tucker: The question is if you want to stay compatible with CSS3, where there 
are no border or shadow properties. I'm not sure...

- Raju

On Feb 5, 2010, at 4:17 PM, P T Withington wrote:

> Couple of questions:
> 
> 1. Should there be a general property `border` as there is for `shadow`, 
> since you could have a border with width but style none, which would still 
> effectively be 'blank'?  And you would use this rather than just border-width 
> for testing blankness (and setting and caching the border settings).
> 
> 2. What are the new `radius1=null, radius2=null, radius3=null` parameters on 
> setCornerRadius.  They seem to be unused.
> 
> On 2010-02-04, at 20:20, Max Carlson wrote:
> 
>> Change 20100204-maxcarlson-a by maxcarl...@bank on 2010-02-04 17:13:51 PST
>>   in /Users/maxcarlson/openlaszlo/trunk-clean
>>   for http://svn.openlaszlo.org/openlaszlo/trunk
>> 
>> Summary: Fix cornerradius, borderwidth and bordercolor behavior in DHTML
>> 
>> Bugs Fixed: LPP-8742 - Cornerradius, borderwidth and bordercolor unreliable 
>> in DHTML
>> 
>> Technical Reviewer: ptw
>> QA Reviewer: hminsky
>> 
>> Details: Dhtml sprites with a borderwidth should use their true height, 
>> canceling quirks.size_blank_to_zero as needed.  Add explicit entry for 
>> shadow property, and use to prevent sprurious updates.  Apply cornerradius 
>> to click and context menu divs.  Add explicit setter for borderColor.  
>> Click/contextmenu sprites use transparent borders to ensure they're the 
>> correct size but don't produce artifacts when their sprite is covered, e.g. 
>> with the debugger.
>> 
>> Tests: See LPP-8742
>> 
>> Files:
>> M       WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
>> 
>> Changeset: 
>> http://svn.openlaszlo.org/openlaszlo/patches/20100204-maxcarlson-a.tar
>> 
>> _______________________________________________
>> Laszlo-reviews mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews
> 
> 
> _______________________________________________
> Laszlo-reviews mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews

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

Reply via email to