servo/tests/ref/legacy_td_width_attribute_ref.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

22 lines
368 B
HTML

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