Bug 1874611 [wpt PR 43987] - [text-spacing-trim] Implement line-end logic, a=testonly