WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
19421
[Transforms] Certain rotation angles cause borders to expand
https://bugs.webkit.org/show_bug.cgi?id=19421
Summary
[Transforms] Certain rotation angles cause borders to expand
mitz
Reported
2008-06-06 17:36:02 PDT
In the URL, the vertical borders are rendered as 3px wide rectangles, but they should be 1px wide. It seems like antialiasing doesn't kick in at that angle, and the coordinates get rounded to two integers 3px apart.
Attachments
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2008-06-06 17:37:38 PDT
This is especially problematic when slowly easing in or out of 0deg rotation, because then the borders momentarily jump right at the end or the beginning of the transition.
Dave Hyatt
Comment 2
2008-06-07 08:53:43 PDT
"It seems like antialiasing doesn't kick in at that angle' We don't antialias border line drawing. It caused problematic artifacts at border joins and stuff and made CSS artwork using borders differ from other browsers.
mitz
Comment 3
2008-06-07 12:15:09 PDT
(In reply to
comment #2
)
> We don't antialias border line drawing.
I don't mean WebKit, I mean Core Graphics. See the antialiasing in this example: data:text/html,div style="width: 50px; height: 50px; border: 1px solid; -webkit-transform: rotate(30deg);"></div>
Ahmad Saleem
Comment 4
2022-12-30 13:27:21 PST
Is this still an issue, using the example from
Comment 03
does not seems to show any difference between Safari 16.2, Chrome Canary 111 and Firefox Nightly 110. JSFiddle -
https://jsfiddle.net/8bu3edrs/show
Appreciate if someone can confirm. Thanks!
mitz
Comment 5
2022-12-30 17:10:15 PST
Thanks for testing. This is not an issue with the examples in this report, as of Safari 16.2 (17614.3.7.1.7, 17614) on macOS Monterey 12.6.2 (21G320).
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