Hello

Again me with my xml editor :-) My xml editor can edit any xml document (if you register the corresponding schema in the application).

Some schema could define some tag which can have the same meaning of <br> or <img>. But the behavior of this tags are hard coded in gecko and so i cannot reproduce their behavior with any xml tags.

It could be usefull for me :

- if I could use this sort of property on any tag :

  display:-moz-line-break;

  so the tag act as <br>

- if I could use :

     background-image:url(attr(src));
     width: -moz-of-background-image;
     height: -moz-of-background-image;

on a tag like this : <myMediaTag src="foo.png" />, so it acts as a <img> tag.

     background-image:url(attr(src));
/* it uses the image pointed by the url which is stored in the src attribute*/

     width: -moz-of-background-image;
     /* the width is the background image width */

     height: -moz-of-background-image;
     /* the height is the background image height */


What do you think about this ideas ? is it feasible by hacking the layout ?


regards

Laurent
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to