Skip to content

Conversation

@dmitri-gb
Copy link
Contributor

The code was ignoring all elements that had a width or height of 0. But the contents of such elements can still be fully visible if the overflow is not set to hidden/clip etc.

A simple example of such a case is something like this:

<div>
  <p style="float: left">Some text</p>
</div>

Because the paragraph is floating, the div will have a height of 0. But the paragraph is still visible and its text can be selected.

This is one of the issues that occurred in #164 (this comment).

The code was ignoring all elements that had a width or height of 0. But
the contents of such elements can still be fully visible if the overflow
is not set to hidden/clip etc.

This is one of the issues reported in GoogleChromeLabs#164.
Copy link
Member

@tomayac tomayac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@tomayac tomayac merged commit eed58b0 into GoogleChromeLabs:main Nov 10, 2025
1 check passed
@tomayac
Copy link
Member

tomayac commented Nov 10, 2025

Released as v6.7.0.

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.

2 participants