Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Input renderer applies overflow clipping to the content box
https://bugs.webkit.org/show_bug.cgi?id=257463 Reviewed by Simon Fraser. Clipping is supposed to be applied to the padding box (interop on input shows it too). * LayoutTests/fast/forms/placeholder-content-clipping-padding-box-expected.html: Added. * LayoutTests/fast/forms/placeholder-content-clipping-padding-box.html: Added. * Source/WebCore/rendering/RenderTextControlSingleLine.cpp: (WebCore::RenderTextControlSingleLine::controlClipRect const): Canonical link: https://commits.webkit.org/264731@main
- Loading branch information
1 parent
fc1d869
commit 020a45f
Showing
5 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
LayoutTests/fast/forms/placeholder-content-clipping-padding-box-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<style> | ||
div { | ||
padding-top: 2px; | ||
padding-left: 3px; | ||
font-family: Ahem; | ||
font-size: 20px; | ||
color: green; | ||
} | ||
</style> | ||
<div>PASS if this is NOT clipped.</div> |
15 changes: 15 additions & 0 deletions
15
LayoutTests/fast/forms/placeholder-content-clipping-padding-box.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<style> | ||
input { | ||
font-family: Ahem; | ||
font-size: 20px; | ||
height: 20px; | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
width: 600px; | ||
border-color: transparent; | ||
} | ||
input::placeholder { | ||
color: green; | ||
} | ||
</style> | ||
<input type="text" placeholder="PASS if this is NOT clipped."> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
LayoutTests/platform/ios/editing/editable-region/search-field-basic-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
(GraphicsLayer | ||
(anchor 0.00 0.00) | ||
(bounds 800.00 600.00) | ||
(children 1 | ||
(GraphicsLayer | ||
(bounds 800.00 600.00) | ||
(contentsOpaque 1) | ||
(drawsContent 1) | ||
(backgroundColor #FFFFFF) | ||
(event region | ||
(rect (0,0) width=800 height=600) | ||
(editable region | ||
(rect (9,10) width=153 height=20) | ||
) | ||
) | ||
) | ||
) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters