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

> Where do I go to see actual spec discussion?

https://github.com/w3c/csswg-drafts/issues/6850#issuecomment-1011300312
https://github.com/w3c/csswg-drafts/issues/7317#issuecomment-1144232411
https://github.com/w3c/csswg-drafts/issues/7317#issuecomment-1150123208

> I'd think 0px would signify no visibility?

I'm not sure if 0x0 sized elements were ever discussed in the spec, but yes that is considered visible by checkVisibility because checkVisibility does not look at the actual size of the element.

`content-visibility: hidden` only makes child elements hidden, so if you call checkVisibility directly on an element with `content-visibility: hidden` it will be considered visible.

`visibility: hidden` is only checked for if you explicitly ask like this: `element.checkVisibility({checkVisibilityCSS: true})`

-- 
GitHub Notification of comment by josepharhar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7317#issuecomment-1239850637 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:39:50 UTC