| <title>Line breaks after closing punctuations</title> |
| <div style="font-size:16pt; text-decoration:underline; width:5em;"> |
| <p style="border:solid green 1px;"> |
| <p style="border:solid green 1px;"> |
| The following two should look like “good”: |
| <div style="font-size:16pt; text-decoration:underline; width:5em;"> |
| <p style="border:solid blue 1px;"> |
| <p style="border:solid blue 1px;"> |
| <div style="font-size:16pt; text-decoration:underline; width:5em;"> |
| <p style="border:solid red 1px;"> |
| <nobr>(111111)(222222)</nobr> |
| <p style="border:solid red 1px;"> |
| <nobr>[111111][222222]</nobr> |
| function paragraphHeight(paragraphNumber) { |
| return document.defaultView.getComputedStyle(document.getElementsByTagName("p")[paragraphNumber], null).getPropertyValue("height") |
| document.getElementById("result").innerHTML = (paragraphHeight(0) == paragraphHeight(2) && paragraphHeight(1) == paragraphHeight(3)) ? "PASS" : "FAIL"; |