Skip to content

Commit

Permalink
Return x, y properties from Element.getBoundingClientRect (#3187)
Browse files Browse the repository at this point in the history
  • Loading branch information
aekobear committed Jun 19, 2021
1 parent 346ea98 commit c9896c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/jsdom/living/nodes/Element-impl.js
Expand Up @@ -343,6 +343,8 @@ class ElementImpl extends NodeImpl {

getBoundingClientRect() {
return {
x: 0,
y: 0,
bottom: 0,
height: 0,
left: 0,
Expand Down
1 change: 0 additions & 1 deletion test/web-platform-tests/to-run.yaml
Expand Up @@ -64,7 +64,6 @@ MediaQueryList**: [fail, Not implemented]
background-change-during-smooth-scroll.html: [fail-slow, Not implemented]
client-props-input.html: [fail, Not implemented]
client-props-root.html: [fail, Not implemented]
cssom-getBoundingClientRect-002.html: [fail, Not implemeneted]
cssom-getBoundingClientRect-003.html: [fail, Not implemeneted]
cssom-getBoxQuads-001.html: [fail, Not implemented]
cssom-getClientRects-002.html: [fail, Unknown]
Expand Down
Expand Up @@ -11,6 +11,8 @@
test(() => {

const zeroDimensions = {
x: 0,
y: 0,
bottom: 0,
height: 0,
left: 0,
Expand Down

0 comments on commit c9896c0

Please sign in to comment.