I have an ng-select (dropdown) that expands beyond the borders of its parent element. That parent element is transparent and has a non-transparent white border, so does the ng-select. See the visualization.
What I need is some kind of "look through" functionality, so that the border that currently strikes through "test2" is invisible, but only for the width of the options of the dropdown, not the whole border-bottom. Simply setting the background of the option to something non-transparent doesnt work, as there is a background-image instead of a simple single-colored background.
So far, I only found this CSS - Child element see through parent, however I don't see a way how I could adapt that solution to my needs.
Another approach I could think of is to set the background-image on the dropdown too and calculate the x/y position manually, but to me that doesn't seem like a good one.
Ideas how to best achieve this behavior?
Edit: stackblitz code example
After playing around with mask like in below code, The drop-down would be cut off completely: mask visualization
mask:
/* 3rd mask */
linear-gradient(#fff,#fff)
top 150px right 5em/
200px 50px,
/**/
linear-gradient(#fff,#fff);
mask-repeat:no-repeat;
mask-composite:exclude;
using position: relative; z-index: 999
, this is the result. Here's a code example.