Summary: | Implement hanging punctuation | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nicholas Shanks <nickshanks> | ||||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | ASSIGNED --- | ||||||||
Severity: | Normal | CC: | ap, bdakin, bfulgham, commit-queue, danidra, fantasai.bugs, hyatt, itshustletime, jmuizelaar, mitz, mmaxfield, sebastianzartner, syoichi | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
Bug Depends on: | 104996 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Nicholas Shanks
2008-03-26 03:49:37 PDT
Agree 100%. I've wanted this feature for a while (even if it's just opt-in through a new property). Any news on this? I checked W3C's specifications and it seems like they don't know how to implement it in a code either. But this would be so useful for any web designer, since, let's admit it, punctuation within the content box at the start of a paragraph really does suck. We need Webkit to lead the way on this, as you guys often do! :) Just wanted to bring this up since the last post on this feature request goes back to 2008. Created attachment 270594 [details]
Patch
Attachment 270594 [details] did not pass style-queue:
ERROR: Source/WebCore/css/CSSPrimitiveValueMappings.h:1634: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4]
ERROR: Source/WebCore/css/CSSParser.cpp:10536: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4]
Total errors found: 2 in 17 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 270595 [details]
Patch
It doesn't seem like other browsers implemented this. For what it's worth, the hanging-punctuation property is currently defined at https://drafts.csswg.org/css-text-3/#hanging-punctuation-property. Sebastian |