WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
69248
translateZ(0) shifts file name in file input
https://bugs.webkit.org/show_bug.cgi?id=69248
Summary
translateZ(0) shifts file name in file input
a5951153
Reported
2011-10-03 04:08:06 PDT
See url if the url above doesn't work: <style> input {-webkit-transform: translateZ(0);} </style> <input type="file" name="file"> <input type="submit" value="Upload">
Attachments
Patch 1
(3.91 KB, patch)
2012-08-07 02:38 PDT
,
yosin
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2011-10-04 10:11:28 PDT
<
rdar://problem/10231217
>
simurai
Comment 2
2012-06-27 09:26:29 PDT
Note: In the jsFiddle
http://jsfiddle.net/NWR2f/1/
of this bug, you have to disable "Normalized CSS" to see it. I made another one
http://jsfiddle.net/Am4CD/
and it appears that any kind of transform causes the "No file chosen" text to be pushed down too much and it's relative to the distance to the top/root.
yosin
Comment 3
2012-08-06 23:49:04 PDT
Filenames/"No file selected" are rendered in RenderFileUploadControl::paintObject and Y-coordinate is calculated as below[1]: LayoutUnit textY = buttonRenderer->absoluteBoundingBoxRectIgnoringTransforms().y() + buttonRenderer->baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine); Note: It seems translate(1) doesn't shift out text. So, does translate(0) cause the problem? = References = [1]
http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp#L149
BTW, how about rendering text by shadow DOM rather than rendering object?
yosin
Comment 4
2012-08-07 02:38:29 PDT
Created
attachment 156899
[details]
Patch 1
yosin
Comment 5
2012-08-07 02:39:12 PDT
Comment on
attachment 156899
[details]
Patch 1 Could you review this patch? Thanks in advance.
yosin
Comment 6
2012-08-07 18:11:07 PDT
Comment on
attachment 156899
[details]
Patch 1 Clearing flags on attachment: 156899 Committed
r124960
: <
http://trac.webkit.org/changeset/124960
>
yosin
Comment 7
2012-08-07 18:11:12 PDT
All reviewed patches have been landed. Closing bug.
Kent Tamura
Comment 8
2012-08-18 17:37:29 PDT
***
Bug 89292
has been marked as a duplicate of this bug. ***
Kent Tamura
Comment 9
2012-08-21 00:27:44 PDT
***
Bug 79280
has been marked as a duplicate of this bug. ***
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