On Thu, 2006-01-05 at 17:20 +0100, Hans Meine wrote:
> >   <container left="10" top="10" right="-10" bottom="-10">
> >       * Allow negative coordinates for right/bottom (and
> >         hcenter/vcenter) coords.
> ..this might clash with that:
> >         <container margin="10 10 10 10" >
> >            <image file="foo.png" left="-10" />
> >         </container>
> 
> I find the latter more natural (and very useful, too) - how about allowing 
> simple expressions as values, then one could write "100% - 10" to simulate 
> the first.  I know, this is extra work to implement, but it's certainly 
> something I missed several times in HTML/CSS.

This is something I had originally allowed in kaa.canvas, but removed
it.  Simple expressions that allow you to mix relative and fixed values
like in your example might be ok.  Once you have basic support for
expressions, there's a temptation to keep expanding on it, until what
you have is intractable. :)

Now that I think about it, though, right="100%-10" might be better than
right=-10, because the latter approach means different semantics for
negative values for the various position properties.  The semantics
should be consistent.  I'll think about this and see if there's a
cleaner way, but basic expressions like "100%-10" might be the best way.

> How about a "visible" property?  Then Freevo can use the extra condition 
> attributes (canvas.xml could store them without looking at them) and 
> conditionally hide/show canvas elements.

There is one, and it works just like the visibility property in css
inasmuch as the object still influences its parent's size and reflow.
What you'd really want is something like "display: none".  This wouldn't
be difficult to add, and it might be one possible solution. 

Cheers,
Jason.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to