Re: fresnel:*Format

From: Emmanuel Pietriga <Emmanuel.Pietriga_at_lri.fr>
Date: Wed, 13 Jul 2005 08:39:55 +0200

Ryan Lee wrote:
> Emmanuel Pietriga wrote:
>
>> Ryan Lee wrote:
>>
>>>>> 3. Ordering / conflict:
>>>>>
>>>>> - Consider formats dealing with children to be a frame outside
>>>>> of the box, not interfering with the actual box. E.g., an
>>>>> allPropertyFormat on a resource will place its content
>>>>> 'outside'
>>>>> of every property, and if any property has further specific
>>>>> directives from a Format, those contents go inside the
>>>>> allPropertyFormat frame. The two do not influence one
>>>>> another.
>>>>
>>>>
>>>>
>>>>
>>>> I'm not sure I like this idea of having one more box. In my mind,
>>>> all*Format and group-level declarations are just a convenient way of
>>>> declaring formatting properties that apply to many things once and
>>>> for all.
>>>
>>>
>>>
>>>
>>> Without calling it a box, I suppose my proposal is that these things be
>>> additive instead of conflicting directives. The order of addition
>>> relies on the scope of the directive. And in practice, I think the
>>> content* strings will appear on the output as one element, not a set
>>> of nested boxes.
>>
>>
>>
>> My concern is not really about boxes. It's about the scope of these
>> declarations. I consider them to do the same thing. The only
>> difference is that those declared at the group level apply to all
>> formats that belong to the group, even if a format by itself does not
>> declare them. Group-level declarations are thus just convenience
>> methods and should not have a different semantics.
>
>
> Group-level styles are added to any other applicable styles as it is
> possible in XHTML to declare multiple classes on one element. This
> allows you to e.g. say something about how every rendered resource
> should look.
>
> The same approach seems to make sense to me here as well. I think they
> all do do the same thing, in a cumulative and ordered sense.

If you do:

<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
     <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15" />
     <style>
p.foo1:before {
   content: "foo1 ";
}

p.foo2:before {
   content: "foo2 ";
}
     </style>
   </head>

   <body>
     <p class="foo1 foo2">p's content</p>
   </body>
</html>

only foo2 appears as content before p's content.

Not both foo1 and foo2.


-- 
Emmanuel Pietriga
INRIA Futurs - Projet In Situ    tel : +33 1 69 15 34 66
Bat 490, Université Paris-Sud    fax : +33 1 69 15 65 86
91405 ORSAY Cedex FRANCE     http://www.lri.fr/~pietriga
Received on Wed Jul 13 2005 - 06:40:02 EDT

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:40:51 EDT