w3c / hlreq

Hebrew script layout requirements
Other
8 stars 9 forks source link

Browsers apply extraneous spaces when letter-spacing #19

Open r12a opened 4 years ago

r12a commented 4 years ago

This issue applies to all languages that use letter-spacing.

Currently browsers that apply letter-spacing do so by adding a space after every letter in the text that is tracked. This results in a superfluous space at the end of the range, which creates an inappropriate gap before the following text. Letter spacing at the end of a line makes the line look misaligned in justified or right-justified text. It also has implications for text that has other styling, such as an outline or a coloured background, at the same time as being stretched.

Here is an example in Hebrew.

![Screenshot 2021-01-25 at 07 51 58](https://user-images.githubusercontent.com/4839211/105676336-46e58980-5ee2-11eb-8dfd-775742d3e949.png)

For more details, see this GitHub issue, which is being used to track this gap. Please add any discussion there, and not to this issue.

r12a commented 4 years ago

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the Editor's draft of the document. Proposals for changes or discussion of the content can be made by adding comments below this point.