I'd like to use the textfield plugin for both the Flash viewer and the iPhone/iPad viewer. However, I can't get the css styling to work on any of them. Here's the XML I use:
Code
<plugin
name="heading"
url="swf/textfield.swf"
x="20"
y="10"
html="[span]This is the heading[/span]"
css="span{color: #ffffff; font-weight: bold; font-family: sans-serif; font-size: 14px; text-align: left;}"
/>
This doesn't work in the Flash viewer, neither in the iPhone/iPad viewer. In the iPhone/iPad viewer, this is the source code that is generated:
Code
<div style="width:100%;height:100%;border:1px solid rgba(0,0,0,0);span{color: #ffffff; font-weight: bold; font-family: sans-serif; font-size: 14; text-align: left;"><span>This is the heading</span></div>
That doesn't seem to be valid html/css (a style declaration for a specific html-element inside a 'style'-attribute won't validate). Could this be a bug?