<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>Testcase, bug 363874</title>
</head>
<body>

<table border width="100%">
  <tr><td style="max-width: 100em">100</td><td width="50">50</td></tr>
</table>

<table border>
  <tr><td style="max-width: 100em">aoeui aoeui aoeui aoeui aoeui aoeui aoeui aoeui aoeui</td></tr>
  <tr><td width="100">100</td></tr>
</table>

</body>
</html>