WebKit Bugzilla
Attachment 371800 Details for
Bug 198737
: The whole viewport shifts down when calling focus() on a contenteditable which may be focused natively
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
testcase
double-focus.html (text/html), 532 bytes, created by
Xidorn Quan
on 2019-06-10 17:59:46 PDT
(
hide
)
Description:
testcase
Filename:
MIME Type:
Creator:
Xidorn Quan
Created:
2019-06-10 17:59:46 PDT
Size:
532 bytes
patch
obsolete
><!DOCTYPE html> ><meta charset="utf-8"> ><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"> ><style> >html, body { > height: 100%; > margin: 0; > padding: 0; >} >body { > border-top: 10px solid; >} >#input { > border: 1px solid; > height: 100px; > position: absolute; > top: 400px; > left: 50px; > right: 50px; >} ></style> ><div contenteditable id="input"></div> ><script> > input.addEventListener('touchend', () => { > input.focus(); > }); ></script>
<!DOCTYPE html> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"> <style> html, body { height: 100%; margin: 0; padding: 0; } body { border-top: 10px solid; } #input { border: 1px solid; height: 100px; position: absolute; top: 400px; left: 50px; right: 50px; } </style> <div contenteditable id="input"></div> <script> input.addEventListener('touchend', () => { input.focus(); }); </script>
View Attachment As Raw
Actions:
View
Attachments on
bug 198737
: 371800 |
371813