Re: [csswg-drafts] [cssom-view] Rename Element.isVisible to Element.isHidden? (#7317)

> Where do I go to see actual spec discussion?

You're looking at it!

> it seems nonsensical to me that the function returns true. I'd think 0px would signify no visibility?

A 0x0 element can still absolutely be visible, for example if it has `outline` or `box-shadow`.

Now, your specific example includes `visibility:hidden`, which *would* make the element invisible (suppressing the effect of outline/etc), and this can be activated with the `.checkVisibility({checkVisibilityCSS:true})` option. We don't include this by default because the most common type of "invisibility" is actually avoiding generating any boxes (such as by `display:none`), and whether or not you want to include other types (like `opacity` or `visibility`) isn't something we can reliably infer one way or the other, so instead we give you the option.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7317#issuecomment-1239852093 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 7 September 2022 20:40:54 UTC