Summary: | Consider matching either Firefox or IE better in the characters that allow a linewrap | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tab Atkins <tabatkins> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | ap, ayg, darin, eric, phnixwxz, wangxianzhu |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux | ||
Bug Depends on: | 20677, 27074, 27195 | ||
Bug Blocks: |
Description
Tab Atkins
2010-06-23 14:44:01 PDT
This is covered by Unicode TR14: http://unicode.org/reports/tr14/ I don't think any browser fully implements that (why not?). It appears to say that breaks are prohibited before class SY, which contains U+002F SOLIDUS (LB13), and prohibited after SY if it's followed by a digit (LB25), but otherwise permitted (LB31). Breaks between alphanumerics (AL and NU) and opening punctuation like [ (OP) are prohibited by LB30, contradicting IE's behavior. It would be cool if the full algorithm were implemented. It contains a lot of useful advice, like "don't break before '!', even after a space" (common in French). It doesn't seem complicated at all to implement -- does it have major problems? Simple reduction: <div style="width: 10px"> a/a/a/a/a/a/a/a/a/a/a/a/a/a/a </div> Several dups in Chromium: http://code.google.com/p/chromium/issues/detail?id=57052 |