Chrome Version: ToT
This reflects the following TODO at TODO(trchen) in https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/paint/video_painter.cc?rcl=bbbb99807779dc6296a7993a3fa0fc34e04024bc&l=64:
// TODO(trchen): Video rect could overflow the content rect due to object-fit.
// Should apply a clip here like EmbeddedObjectPainter does.
However, the comment has been out-dated since we added OverflowClip property for replaced elements. Now the problem is that LayoutVideo is a LayoutImage which is supposed to support embedded clip in its painter but VideoPainter doens't.
The correct way is to apply the clip in ScopedReplacedContentPaintState (in replaced_painter.cc), and remove other unnecessary embedded clips (like the one in EmbeddedObjectPainter).
Comment 1 by bugdroid1@chromium.org
, Jan 3