Bug 22746

Summary: Enable antialiasing for border drawing, when transformed
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: hyatt, mitz, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Bug Depends on: 58761    
Bug Blocks:    
Attachments:
Description Flags
Screenshot: current state on the left, with antialiasing on the right.
none
Borders with alpha none

Simon Fraser (smfr)
Reported 2008-12-08 17:21:06 PST
Rotated tables look awful because the border is drawn without antialiasing (see screenshot). We should turn on antialiasing, but why was it turned off in the first place?
Attachments
Screenshot: current state on the left, with antialiasing on the right. (10.61 KB, image/png)
2008-12-08 17:22 PST, Simon Fraser (smfr)
no flags
Borders with alpha (6.47 KB, image/png)
2008-12-09 10:13 PST, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2008-12-08 17:22:39 PST
Created attachment 25864 [details] Screenshot: current state on the left, with antialiasing on the right.
mitz
Comment 2 2008-12-08 17:31:49 PST
Comment on attachment 25864 [details] Screenshot: current state on the left, with antialiasing on the right. Why is there a crack in the bottom-right corner in the non-rotated case? It looks like a serious problem.
Simon Fraser (smfr)
Comment 3 2008-12-08 19:11:36 PST
Yeah, that could be an issue.
Simon Fraser (smfr)
Comment 4 2008-12-09 10:13:32 PST
Created attachment 25890 [details] Borders with alpha It would also be nice to fix the issues when using rgba() colors as borders (see screenshot).
mitz
Comment 5 2008-12-09 10:18:20 PST
Comment on attachment 25890 [details] Borders with alpha Bug 21835.
Simon Fraser (smfr)
Comment 6 2008-12-09 17:14:09 PST
Hyatt says that we can't just turn on AA for borders; web authors rely on the per-pixel rendering. We may be able to turn on AA if the element is transformed, though.
mitz
Comment 7 2008-12-17 20:15:01 PST
See also bug 19421.
Simon Fraser (smfr)
Comment 8 2010-07-16 13:02:34 PDT
We think this makes http://unevengoogle.com/ look bad.
Simon Fraser (smfr)
Comment 9 2010-08-18 10:51:16 PDT
Borders used for "pixel art": http://www.infimum.dk/HTML/slantinfo.html
Simon Fraser (smfr)
Comment 10 2011-04-17 08:55:28 PDT
Another reason to do this is that we draw solid borders with rects (antialiased), and groove/inset/outset borders with polygons (non antia-aliased), so if you change the border style, you go between OK and crappy rendering.
Simon Fraser (smfr)
Comment 11 2011-04-19 11:46:36 PDT
Note You need to log in before you can comment on or make changes to this bug.