[Webkit-unassigned] [Bug 14736] New: Safari implementation of text-shadow off by 1px

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 23 15:00:46 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14736

           Summary: Safari implementation of text-shadow off by 1px
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
               URL: http://www.css3.info/selectors-test/test.html
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Blocker
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: david.storey at opera.com
                CC: joost at webkit.org


This issue is causing us problems now we (Opera) support text-shadow.  It will
likely cause iCab and KHTML similar problems.

Text with text shadow on this page and others that use an offset of 2px 2px
displays like double text in Opera.  Our analysis is as follows:

"1. Safari always uses antialiased text, where Opera on my laptop uses no
antialiasing, but has a very thin (1px) font line. This means Safari blurs the
shadow too as part of the antialias, making it rest against the text, where
Opera shows it separate. Gogi antialiases as well.

"2. They (the site) ask for a 2px 2px offset, which Opera dutifully does.
Safari uses 1px 1px, so there is no gap between the text and the shadow, where
there is in Opera.

"safari has a weird formula for shadow offset:
offset = ( offset/abs(offset) ) * ( abs(offset)-1 )

so:
3 -> 2
2 -> 1
1 -> 0
0 -> 0
-1 -> 0
-2 -> 1
-3 -> 2

due to the 1px error in Safari, fixing this issue for Opera (and to render as
the author intends it to look) and making the offset 1px 1px would make the
shadow disappear in Safari.  

With the current implementation one can either make it look correct in Opera
and broken in Safari or work correctly in Safari and broken in Opera.  

any chance of getting this 1px error fixed in Safari 3?


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list