- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 07 Dec 2022 17:59:18 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-contain-2] Spec is unclear about whether 0-sized boxes can be "relevant to the user" (since they have zero intersection area)`, and agreed to the following: * `RESOLVED: Match intersection observer behavior for this definition` <details><summary>The full IRC log of that discussion</summary> <flackr> TabAtkins: problem is if you have a 0-sized box, it's not clear in several conditions whether it's relevant to the user on screen, next to screen, etc<br> <flackr> TabAtkins: have to be careful whatever we do doesn't influence positive area boxes<br> <flackr> TabAtkins: the definition in the thread is if a box is 0 area we treat it as if it's epsilon size in the 0-axis and calculate intersection as normal<br> <flackr> TabAtkins: this means if it's inside the viewport it's intersecting. If it's next to, it also does so. But if it has positive area but is adjacent it will remain not intersecting<br> <emilio> q+<br> <flackr> TabAtkins: Specifically, if the element has 0 it's on screen if it's in the inclusive range of the viewport's bounds<br> <flackr> s/0/0 area<br> <flackr> TabAtkins: if this sounds reasonable, we can add this<br> <astearns> ack emilio<br> <smfr> q+<br> <flackr> emilio: intersection observer has this idea of adjacent intersection which handles this, any reason we can't use this?<br> <flackr> TabAtkins: not aware of details of this<br> <emilio> https://w3c.github.io/IntersectionObserver/#update-intersection-observations-algo<br> <emilio> > Let isIntersecting be true if targetRect and rootBounds intersect or are edge-adjacent, even if the intersection has zero area (because rootBounds or targetRect have zero area).<br> <astearns> ack smfr<br> <flackr> smfr: a 0-sized box can be made and have a visual impact by having an outline or box outset. These may have painted ink overflow<br> <flackr> astearns: my understanding is we don't want to count ink overflow<br> <flackr> astearns: we aren't including box shadows for example<br> <flackr> astearns: something visible on the screen may be interesting to use even if it has 0 size<br> <flackr> s/astearns/smfr<br> <flackr> astearns: proposal is we would only count adjacent boxes for 0 size<br> <flackr> TabAtkins: my definition was carefully crafted to do a minimal change but aligning with intersection observer is a good idea and have no strong opinions on specific so prefer to align with what IO does<br> <flackr> astearns: this would catch those things which smfr mentioned and also things which don't have ink overflow<br> <flackr> TabAtkins: not necessarily, ink overflow can be larger than 1px but that's not included by intersection observer either<br> <flackr> smfr: just wanted to make sure we don't discount things that are 0x0<br> <flackr> RESOLVED: Match intersection observer behavior for this definition<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5641#issuecomment-1341356265 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 7 December 2022 17:59:20 UTC