Re: [csswg-drafts] [css-contain-2] Spec is unclear about whether 0-sized boxes can be "relevant to the user" (since they have zero intersection area) (#5641)

<img src="https://user-images.githubusercontent.com/7477678/97123740-73480900-172d-11eb-824c-edcbffd80cd4.png" align="left" width="128" height="124">

In this image the intersection of the planes is a line with 0 volume. But it wouldn't be reasonable to say that then they don't intersect.

Seems basically the same in your case, with the viewport being a square, and the 0-sized box being a point. The intersection can be the same point (if it is in the square) or the empty set (if the point is not in the square). That the point has 0 area doesn't mean that there is no intersection.

The "is considered as intersecting this area if it is fully contained within this area" doesn't cover the case of a 0px tall box but positive width. It can still intersect the viewport (with 0 area) even if it's only partially contained within the area.

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


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

Received on Monday, 26 October 2020 01:10:57 UTC