-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[devtools.html] Range.getBoundingClientRect support #8982
Comments
|
@bgrins, do you have more details about this? When running the latest |
I did have a workaround for #8981 locally but I've now pushed that in joewalker/devtools.html@b1cb205. So if you pull the latest servo-client branch then do:
|
This is Range.getBoundingClientRect, which isn't implemented yet:
|
Hey @jdm I would like to try this one. |
Please ask questions if anything's unclear. We can start with using the existing support for Element.getClientRects and Element.getBoundingClientRect and then extend it to support the special behaviour described for slices of text nodes. |
Previous attempt in #10828. |
@jdm can you assign this one to me? I'd like to give it a try. |
It's already marked as assigned, and we can't set the assignee field to people who aren't part of the servo organization. |
So yes, go ahead :) |
In case anyone is wondering, I did make some progress toward an implementation here, but then I got stuck when I started writing tests and noticed that every engine seems to give different results for these APIs. I wasn't sure how to resolve that... If anyone has suggestions, maybe I can continue to push forward. |
Isn't there some wpt test for getClientRects and getBoudingClientRect? |
@jryans when I was trying to do it i created some sort of tests but every browser will return a different value which makes that a bit hard to do but here [1] is the closed pr. |
Doesn't look like there's any tests for |
If someone wants to pick up where I left off with this, here's my branch: |
In meta-issue #8973 to get devtools.html loading, we noticed
getBoundingClientRect
is not supported yet.CodeMirror (which we use as an editor throughout various parts of our tools) relies on this for various metrics and expects it to be available.
The text was updated successfully, but these errors were encountered: