Print This Textarea

This page is similar to this demo, which showed how CSS was insufficient to print textarea elements. However, this page includes Javascript that copies the contents of the textarea to an extra div that is shown only on print.

Print (preview) of this page should include “Last line of textarea”, because we copied the contents of the textarea to a helper div that is only displayed with the print stylesheet.

Print stylesheets are insufficient to print the contents of a long textarea in many or most browsers, such as Chrome 13. Proof here.

If this helped you, upvote my answer on StackOverflow. Or contact the test author here.