Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6cfe538550040e8c877954bdc0bb01cad14b5cbb
      
https://github.com/WebKit/WebKit/commit/6cfe538550040e8c877954bdc0bb01cad14b5cbb
  Author: Dana Estra <[email protected]>
  Date:   2026-06-01 (Mon, 01 Jun 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/rendering/RenderVTTCue.cpp

  Log Message:
  -----------
  WebVTT cues that do not fit inside the video rendering area should be hidden
https://bugs.webkit.org/show_bug.cgi?id=315880
rdar://136809012

Reviewed by Alan Baradlay.

This patch fixes our implementation of the WebVTT cue positioning algorithm.
The spec states that if the cue cannot be fit fully within the video rendering
area without overlapping with another cue or spilling outside of the video,
it should not be shown. This patch implements hiding the cue box by setting the
render box's dimensions to 0.

Updates WebVTT test expectations to reflect the WPT that now pass.

* LayoutTests/TestExpectations:
* Source/WebCore/rendering/RenderVTTCue.cpp:
(WebCore::RenderVTTCue::switchDirection):

Canonical link: https://commits.webkit.org/314333@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to