intersect_rectangle

Function intersect_rectangle 

Source
fn intersect_rectangle(
    lhs: &Rect<Au, CSSPixel>,
    rhs: &Rect<Au, CSSPixel>,
) -> Option<Rect<Au, CSSPixel>>
Expand description

In terms of intersection observer, we consider zero-area rectangles as long as the area is not negative.