Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Explore supporting subset of HTML inside foreignObject #397

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
One of the unique features of SVG is the foreignObject tag. We should
explore whether it is feasible to support a very small subset of HTML
inside of this for SVG Web:

<foreignObject>
  <h1>Hello world!</h1>
  <p>This is some <b>text</b> that could get really long and would have
automatic line wrapping unlike with native SVG support!</p>
</foreignObject>

Candidate tags to support: H1-H6, P, DIV, SPAN, B, I, etc.

The big issue is whether this would bloat the code. I think we could do it
with some small minimal code if Flash has some features we can reuse,
especially for line wrapping which we might get for free.

Original issue reported on code.google.com by bradneub...@gmail.com on 5 Nov 2009 at 11:57

GoogleCodeExporter commented 8 years ago
Issue 252 has been merged into this issue.

Original comment by bradneub...@gmail.com on 19 Nov 2009 at 9:41

GoogleCodeExporter commented 8 years ago
A potential test case - Rouget's foreignobject demo (also could test the html5 
video
support from issue 396 with this):
http://people.mozilla.com/~prouget/demos/svg/foreignobject.svg

Original comment by rdci...@gmail.com on 4 Dec 2009 at 3:22