Add <span> tag and limited support for CSS styles to wxHTML.

Parse "style" attributes of the HTML tags and honour those of them that can be
mapped to the HTML 3 attributes.

Also add a handler for <span> tag.

Closes #10631.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-05-30 23:12:25 +00:00
parent c9554803fa
commit f68e16c5fc
26 changed files with 590 additions and 3 deletions

View File

@@ -6,6 +6,21 @@
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#B3B6E0" LINK="#0000FF" VLINK="#FF0000" ALINK="#000088">
<!-- Test of (very limited) CSS styles support -->
<table border="0" cellspacing="0" cellpadding="5" style="width:100%; background:#C0C0C0;">
<tr style="vertical-align:middle">
<td style="text-align:left">
<span style="font-size: 24pt; font-weight: bold;">Header using styles</span>
</td>
<td style="text-align:right">
<span style="font-size:9pt">
<a href="tables.htm">Next</a>
</span>
</td>
</tr>
</table>
<font size=+2>
<b><a href="tables.htm">click here to go to tables test page</a></b>
<p>
@@ -19,6 +34,7 @@
<p>
<b><a href="regres.htm">some wxHTML regression tests</a></b>
</font>
<p>
Agrave = '&agrave;'
<p>