servo/tests/ref/legacy_td_width_attribute_a.html
Patrick Walton 5f8d3f72d8 layout: Introduce support for legacy presentational attributes to selector
matching, and use it for `<input size>` and `<td width>`.

This implements a general framework for legacy presentational attributes
to the DOM and style calculation, so that adding more of them later will
be straightforward.
2014-10-14 12:44:09 -07:00

21 lines
417 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.a {
height: 16px;
background: blue;
}
.b {
background: green;
}
</style>
</head>
<body>
<table><tr><td width=30 class=a></td><td width=200 class=b></td></tr></table>
<table><tr><td width="30 " class=a></td><td width=" 200 " class=b></td></tr></table>
<table><tr><td width="30asdf" class=a></td><td width=200haha class=b></td></tr></table>
</table>
</body>
</html>