Bug 65822 - Letter-spacing does not play well with text-align:right
Summary: Letter-spacing does not play well with text-align:right
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-06 15:54 PDT by lacerchia
Modified: 2022-07-12 15:06 PDT (History)
2 users (show)

See Also:


Attachments
demonstration (250 bytes, text/html)
2011-08-06 15:54 PDT, lacerchia
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description lacerchia 2011-08-06 15:54:42 PDT
Created attachment 103168 [details]
demonstration

If you use letter-spacing with left alignment, the first letter aligns with other left-aligned paragraphs that don't have letter-spacing set. But with right alignment, the last letter does not align with other right-aligned paragraphs: it is shifted left by the letter-spacing amount. In other words, letter-spacing currently adds the specified amount of space to the right of the glyph. I think that violates CSS2, which says that "This property specifies spacing behavior between text characters" <http://www.w3.org/TR/CSS2/text.html#spacing-props>; not between a character and the right side of the text box.
Comment 1 Brent Fulgham 2022-07-12 15:06:41 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.