Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 24a48b519a4e51112785694d76ae64be51ef40ca
      
https://github.com/WebKit/WebKit/commit/24a48b519a4e51112785694d76ae64be51ef40ca
  Author: Karl Dubost <[email protected]>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    M LayoutTests/fast/css/hotels-animation-quirk.html
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebCore/style/StyleAdjuster.cpp

  Log Message:
  -----------
  adjust Quirks for hotels.com to have kick in earlier in the process
https://bugs.webkit.org/show_bug.cgi?id=312212
rdar://171850184

Reviewed by Brent Fulgham.

The hotels.com animation quirk was not firing on first click during
page load. Two issues:

1. The isInitial() guard blocked the quirk because the site's
@supports Safari-detection hack sets animation: none (specificity
0,5,0) on the target menu containers, making isInitial() return true.

Replace with hasClassName("uitk-menu-container") + hasClassName
("uitk-menu-open") pre-filters. The first filters out ~99% of
elements cheaply. The second ensures the quirk only applies when
the menu is actively being opened, not in its closed state.

2. The menu-fade-in animation used fill-mode Forwards, which left
a 0.06s window during the animation delay where the @supports
block's opacity: 1 was visible, causing a flash. Changed to
fill-mode Both so the animation's start state (opacity: 0)
applies during the delay via backwards fill.

* LayoutTests/fast/css/hotels-animation-quirk.html:
* Source/WebCore/page/Quirks.cpp:
* Source/WebCore/page/Quirks.h:
* Source/WebCore/style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjustForSiteSpecificQuirks const):

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



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

Reply via email to