Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement Element.client{Top,Left,Width,Height} #1713
Comments
|
I will work on this one. |
|
I have a question about the The
The
Then I change the The problem is that the The test code is <html>
<div id="div" style="width:100px; height:100px; padding:10px; border:5px solid;"></div>
<script>
var div = document.getElementById("div");
alert(div);
alert(div.clientTop);
</script>
</html>I am still trying to figure it out. Any idea? Thank you. |
|
By the way, I did have one time that the code work. |
|
Also, the |
|
The problem is that the script code is racing with layout, which may not have finished yet. At minimum you'll need to call |
|
The unimplemented style property is tracked in #1721. |
|
It didn't work to me. |
|
Error message:
|
|
I called |
|
Can you push your code to a branch? |
|
@pcwalton @metajack @kmcallister Hi! Do you know how to extract the layout information from the layout task in the script? The |
|
@lpy You can create a new message to send via query_layout and calculate whatever you need. You don't have to rely on existing message types. |
|
Are you still working on this, @lpy? |
|
Yep! |
http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
Looking into the scrollTop and scrollLeft getters could be fun as well. Not sure what work would be involved with the setters, though.