Closed colefichter closed 9 years ago
If a style block has selectors that apply to an IMG tag, we can end up writing the width/height attributes with the "px" suffix from the computed style. This violates the HTML spec (see http://www.w3schools.com/tags/att_img_width.asp).
Rather than rendering:
<img width="100px" height="50px">
the final output should be
<img width="100" height="50">
Shit, wrong project. Sorry!
If a style block has selectors that apply to an IMG tag, we can end up writing the width/height attributes with the "px" suffix from the computed style. This violates the HTML spec (see http://www.w3schools.com/tags/att_img_width.asp).
Rather than rendering:
the final output should be