Bug 1698043 - Upstream the test for this bug to WPT. r=layout-reviewers,jfkthame

Seems like a reasonable thing to expect that the placeholder renders at
the same place as the text it's a placeholder for.

Differential Revision: https://phabricator.services.mozilla.com/D111239
This commit is contained in:
Emilio Cobos Álvarez 2021-04-08 10:40:51 +00:00
parent 9f7b34c24e
commit 27935a49df
4 changed files with 16 additions and 13 deletions

View File

@ -1,12 +0,0 @@
<!doctype html>
<style>
input {
color: black;
text-align: right;
}
input::placeholder {
color: inherit;
opacity: 1;
}
</style>
<input type=number placeholder=0>

View File

@ -44,7 +44,6 @@ fuzzy-if(skiaContent,0-1,0-1) == number-selected.html number-selected-ref.html
== number-pseudo-elements.html number-pseudo-elements-ref.html
== number-placeholder.html number-placeholder-ref.html
== number-placeholder-right-aligned.html number-placeholder-right-aligned-ref.html
# check that if the anonymous text control is reframed, we reframe the whole
# number control (the fuzzy is for the top-right and bottom-left of the border

View File

@ -0,0 +1,16 @@
<!doctype html>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1698043">
<link rel="match" href="number-placeholder-right-aligned-ref.html">
<style>
input {
color: black;
text-align: right;
}
input::placeholder {
color: inherit;
opacity: 1;
}
</style>
<input type=number placeholder=0>