Skip to content

Commit c9896c0

Browse files
authored
Return x, y properties from Element.getBoundingClientRect (#3187)
1 parent 346ea98 commit c9896c0

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

lib/jsdom/living/nodes/Element-impl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ class ElementImpl extends NodeImpl {
343343

344344
getBoundingClientRect() {
345345
return {
346+
x: 0,
347+
y: 0,
346348
bottom: 0,
347349
height: 0,
348350
left: 0,

test/web-platform-tests/to-run.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ MediaQueryList**: [fail, Not implemented]
6464
background-change-during-smooth-scroll.html: [fail-slow, Not implemented]
6565
client-props-input.html: [fail, Not implemented]
6666
client-props-root.html: [fail, Not implemented]
67-
cssom-getBoundingClientRect-002.html: [fail, Not implemeneted]
6867
cssom-getBoundingClientRect-003.html: [fail, Not implemeneted]
6968
cssom-getBoxQuads-001.html: [fail, Not implemented]
7069
cssom-getClientRects-002.html: [fail, Unknown]

test/web-platform-tests/to-upstream/cssom-view/Element-getBoundingClientRect.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
test(() => {
1212

1313
const zeroDimensions = {
14+
x: 0,
15+
y: 0,
1416
bottom: 0,
1517
height: 0,
1618
left: 0,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy