To see how Javascript can help solve this problem, check out this demo.
If you print (preview) this page and don’t see the text “Last line of textarea”, then print stylesheets are insufficient to print the contents of a long textarea (in your browser). This is the case in, for example, Chrome 13. But check out my fix that uses javascript.
If this helped you, upvote my answer on StackOverflow. Or contact the test author here.