forked from mirrors/gecko-dev
The fix in Bug 1696885 is not correct when the width of the text in <input> is shorter than the width of the <input>, but is long enough to be covered by its inline-end padding. This patch's idea is similar to the old code [1] before applying bug 1696885, but only tweak the scrollable overflow area in the inline axis. [1] https://searchfox.org/mozilla-central/rev/c3ee9188d2f9020764db9daf8fa47a07fa3311c9/layout/generic/nsGfxScrollFrame.cpp#785-806 Differential Revision: https://phabricator.services.mozilla.com/D123244
20 lines
513 B
HTML
20 lines
513 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Overflow Reference: Test the text in an input is not clipped and reachable</title>
|
|
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
|
|
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
|
|
<link rel="stylesheet" href="/fonts/ahem.css">
|
|
|
|
<style>
|
|
input {
|
|
box-sizing: border-box;
|
|
width: 160px;
|
|
padding-inline: 40px 60px;
|
|
background: yellow;
|
|
font: 20px/1 Ahem;
|
|
border: 0;
|
|
direction: rtl;
|
|
}
|
|
</style>
|
|
|
|
<input value="XpX">
|