Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3e56a5447cd445cd703ce932e003e7acba710859
https://github.com/WebKit/WebKit/commit/3e56a5447cd445cd703ce932e003e7acba710859
Author: Aditya Keerthi <[email protected]>
Date: 2025-09-16 (Tue, 16 Sep 2025)
Changed paths:
M Source/WebCore/page/Quirks.cpp
M Source/WebCore/page/Quirks.h
M Source/WebCore/page/QuirksData.h
M Source/WebCore/style/StyleAdjuster.cpp
Log Message:
-----------
Text inputs on logic-masters.de overflow their containers
https://bugs.webkit.org/show_bug.cgi?id=298966
rdar://159975950
Reviewed by Abrar Rahman Protyasha.
logic-masters.de uses the size attribute to set the width of text inputs and
then attempts to restrict the input width to the container using either
`width: 100%` or `max-width: 100%`.
However, this results in the input still being slightly larger than expected
due to the default padding of native inputs. The overflow is even worse on
macOS and iOS 26, since the default padding of inputs was increased.
The site should be using `box-sizing: border-box;` here to ensure that padding
is accounted for in the max-width. Until they do, quirk the behavior to fix the
issue.
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::needsTextInputBoxSizingBorderBoxQuirk const):
(WebCore::handleLogicMastersQuirks):
(WebCore::Quirks::determineRelevantQuirks):
* Source/WebCore/page/Quirks.h:
* Source/WebCore/page/QuirksData.h:
* Source/WebCore/style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjustForSiteSpecificQuirks const):
Canonical link: https://commits.webkit.org/300048@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes