Use placeholder text to calculate minimum autosize width (if it is present)

Use case for me was a user deleting input element content that was narrower than the placeholder text. This resulted in the autosize truncating the placeholder text. The proposed change simply uses any provided placeholder attribute text as the default value if the input element is empty.