-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(synthetic-shadow): elementsFromPoint returns invisible hosts (#2534)
* fix(synthetic-shadow): elementsFromPoint returns invisible hosts Fixes #2495 W-9904840 * fix: only consider immediate shadow root * fix: optimize impl a bit * fix: fix missing array methods * test: make test more consistent across browsers * test: tidy up test * test: disable test for ie11 * fix: extract function to outer scope
- Loading branch information
1 parent
12374ed
commit e2e0dff
Showing
11 changed files
with
189 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/integration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/child/child.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:host, div { | ||
position: absolute; | ||
width: 100px; | ||
height: 100px; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/integration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/child/child.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<div data-id="childDiv"></div> | ||
</template> |
3 changes: 3 additions & 0 deletions
3
packages/integration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/child/child.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement {} |
5 changes: 5 additions & 0 deletions
5
...egration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/grandparent/grandparent.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:host, div { | ||
position: absolute; | ||
width: 100px; | ||
height: 100px; | ||
} |
5 changes: 5 additions & 0 deletions
5
...gration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/grandparent/grandparent.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div data-id="grandparentDiv"> | ||
<x-parent data-id="parent"></x-parent> | ||
</div> | ||
</template> |
3 changes: 3 additions & 0 deletions
3
...tegration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/grandparent/grandparent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement {} |
5 changes: 5 additions & 0 deletions
5
packages/integration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/parent/parent.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:host, div { | ||
position: absolute; | ||
width: 100px; | ||
height: 100px; | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/integration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/parent/parent.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div data-id="parentDiv"> | ||
<x-child data-id="child"></x-child> | ||
</div> | ||
</template> |
3 changes: 3 additions & 0 deletions
3
packages/integration-karma/test/shadow-dom/ShadowRoot.elementsFromPoint/x/parent/parent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class extends LightningElement {} |