-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
[FIX # 2184] Add clip, clip-path check; Add parent visibility check #2186
base: develop
Are you sure you want to change the base?
Conversation
…Does not provide detection for fields covered by overlays for performance.
Are there any common known sites that are affected by this change and can be used for testing? |
This fix does not work for me. I tested this with the first URL in the issue (https://felix026x.github.io/overlay.html) and after filling (with this change or without) |
Thanks for your comments. As we describe in the first thread, we do not consider the |
clipPath = clipPath.trim(); | ||
const ret = false; | ||
if (clipPath.startsWith("inset")) { | ||
ret = kpxcFields.isClippedPathInset(clipPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeError: Assignment to constant variable.
if (clipPath.startsWith("inset")) { | ||
ret = kpxcFields.isClippedPathInset(clipPath); | ||
} else if (clipPath.startsWith("circle")) { | ||
ret = kpxcFields.isClippedPathCircle(clipPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeError: Assignment to constant variable.
} | ||
|
||
kpxcFields.isClipped = function(clip, position) { | ||
if (clip !== "auto" && clip.trim() !== "" && (position === "absolute" || position === "fixed")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regex below this is not very readable. Is there any way to make it more simple? Also, you should use single quotes in the code instead of double quotes.
To solve Issue #2184, we modify the original method for visibility check, and consider the hidden techniques using
clip
andclip-path
. We also fix thestyle
issue, where the original code utilizes the style of the inline element while overlooking the nested CSS styles. However, for performance overhead, we do not implement the detection for hidden fields caused by overlays.