WebKit Bugzilla
Attachment 339610 Details for
Bug 184694
: document.body.scrollHeight is different after resizing the window down and up
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test reduction
TestReduction.html (text/html), 474 bytes, created by
zalan
on 2018-05-04 16:33:20 PDT
(
hide
)
Description:
Test reduction
Filename:
MIME Type:
Creator:
zalan
Created:
2018-05-04 16:33:20 PDT
Size:
474 bytes
patch
obsolete
><!DOCTYPE html> ><html> ><head> ><style> >.foo { > display: inline-block; > width: 300px; > height: 300px; > border: 1px solid green; >} > >#growing { > position: absolute; > background: red; > width: 10px; > height: 100%; >} ></style> ><body> ><div id=growing></div> ><div class=foo></div><div class=foo></div><div class=foo></div><div class=foo></div> ><script> >window.onresize = function () { > growing.style.height = document.body.scrollHeight + "px"; >} ></script> ></body> ></html>
<!DOCTYPE html> <html> <head> <style> .foo { display: inline-block; width: 300px; height: 300px; border: 1px solid green; } #growing { position: absolute; background: red; width: 10px; height: 100%; } </style> <body> <div id=growing></div> <div class=foo></div><div class=foo></div><div class=foo></div><div class=foo></div> <script> window.onresize = function () { growing.style.height = document.body.scrollHeight + "px"; } </script> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 184694
:
338118
|
339609
| 339610