WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
11889
Support stroking and filling of text in HTML using CSS
https://bugs.webkit.org/show_bug.cgi?id=11889
Summary
Support stroking and filling of text in HTML using CSS
Dave Hyatt
Reported
2006-12-20 01:55:25 PST
Four new properties: text-fill-color - Set the color to use when filling text. If not set uses color. text-stroke-color - Set the color to use when stroking text. If not set uses color. text-stroke-width - Set the width of the stroke. If 0, no stroke happens. Can take thin/medium/thick keywords to allow for a width that will auto-scale with the font size. text-stroke - Shorthand for both text-stroke-* properties
Attachments
Patch to implement this functionality
(24.79 KB, patch)
2006-12-20 01:56 PST
,
Dave Hyatt
no flags
Details
Formatted Diff
Diff
Add a layout test and fix a couple of bugs mitz noticed
(158.82 KB, patch)
2006-12-20 02:26 PST
,
Dave Hyatt
mitz: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Dave Hyatt
Comment 1
2006-12-20 01:56:56 PST
Created
attachment 11928
[details]
Patch to implement this functionality Here it is. Note that this is vaguely similar to a draft CSS3 property called text-outline, but I wanted to impelment a text-stroke property just for our engine that will match precisely the CG behavior for text stroking.
Dave Hyatt
Comment 2
2006-12-20 02:26:16 PST
Created
attachment 11929
[details]
Add a layout test and fix a couple of bugs mitz noticed Added a layout test.
mitz
Comment 3
2006-12-20 02:44:46 PST
Comment on
attachment 11929
[details]
Add a layout test and fix a couple of bugs mitz noticed r=me + int strokeOverflow = rt->style()->textStrokeWidth() / 2 + 1; Should be the other way around (add then divide).
Mark Rowe (bdash)
Comment 4
2006-12-20 11:23:33 PST
This was landed by Dave in
r18340
.
Ian 'Hixie' Hickson
Comment 5
2006-12-20 13:13:17 PST
Might be worth considering repurposing the SVG properties here, on the long term.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug