Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUMMARY element: click() for invisible SUMMARY should toggle DETAILS …
…element SUMMARY element: click() for invisible SUMMARY should toggle DETAILS element https://bugs.webkit.org/show_bug.cgi?id=245937 Reviewed by Tim Nguyen. Merge - https://chromium.googlesource.com/chromium/src.git/+/c162ebcbfa71bfbdd8e3fdba2137c382f752b4b2 This is to align Webkit behavior with Gecko (Firefox) and Blink (Chrome). We had unreasonable renderer() existence check for activate event handling. It is not defined by the standard. * Source/WebCore/html/HTMLSummaryElement.cpp: (HTMLSummaryElement::supportsFocus): Remove "renderer" condition (HTMLSummaryElement::defaultEventHandler): Simplified and removed "renderer" condition * LayoutTests/fast/html/summary-invisible-click.html: Added Test Case * LayoutTests/fast/html/summary-invisible-click-expected.txt: Added Test Case Expectations * LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-summary-element/activation-behavior-expected.txt: Updated Test Expectations Canonical link: https://commits.webkit.org/255073@main
- Loading branch information
Showing 4 changed files with 40 additions and 12 deletions.