Open Bug 1516113 Opened 6 years ago Updated 2 years ago

[wpt-sync] Sync PR 14647 - [PE] Fix video overflow clip

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 14647 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/14647 Details from upstream follow. Xianzhu Wang <wangxianzhu@chromium.org> wrote: > [PE] Fix video overflow clip > > Previously video with object-fit:none or object-fit:cover was > not clipped when the contents overflowed the replaced content > box, because it was treated as an image that was supposed > not to paint outside of the replaced content box but not true. > > Simplify overflow clip logic of replaced element. Remove the > dependency of image overflow clip on compositing state. > > We treat videos as images, so the above change fixes video clip > issue. > > ReplacedPainter will emit paint chunk with overflow clip > depending on paint property only. No longer depends on other > conditions. This applies to all replaced elements. > > Bug: 912357 > Change-Id: I5de102f7b6b9ad79f372392de44012deb8a9cfec > > Reviewed-on: https://chromium-review.googlesource.com/1387152 > WPT-Export-Revision: 41e2a992545f5757e1353ba768c985bf783a2333
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.