Skip to content
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

Compute style when removing hidden nodes #122

Merged
merged 2 commits into from
Sep 13, 2024
Merged

Compute style when removing hidden nodes #122

merged 2 commits into from
Sep 13, 2024

Conversation

wheelercj
Copy link
Collaborator

Relates to #121 but does not fix it.

Using `currentNode.style` only gives inline styles, but
`doc.defaultView.getComputedStyle(currentNode)` is supposed to get all
CSS properties. For some reason, the function still does not correctly
detect the `display: none` of the `descriptor` class applied to many
elements on https://arxiv.org/abs/2306.03872.
@wheelercj wheelercj merged commit 4295a2d into main Sep 13, 2024
@wheelercj wheelercj deleted the fix-misc branch September 13, 2024 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant