Re: [csswg-drafts] [css-view-transitions-2] Ignore offscreen elements from participating in transitions (#8282)

OTOH, I'm not sure if we want to extend this in the future to enable exclusive cutoff rather than inclusive, or even clipping (only the rect that's part of the viewport is snapshotted).

Perhaps this can be (extended in the future to) 4 properties, with a shorthand (replace the word `cutoff` with any other word that we choose):
```
view-transition-cutoff-area: viewport | root;
view-transition-cutoff-rule: inclusive | exclusive | clip; /* this is somewhat similar to canvas/svg fill-rule */
view-transition-cutoff-margin: length-percentage;
view-transition-cutoff-extents: border-box | paint-box | ...;

view-transition-cutoff: inclusive viewport; /* shorthand to include any element that intersects with the viewport */
view-transition-cutoff: inclusive root; /* this is the default */
view-transition-cutoff: clip viewport; /* this is the default for the root element*/
```

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


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

Received on Monday, 8 April 2024 08:50:42 UTC