Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1577530] Cache theming values from nsTextControlFrame correctly. #26931

Merged
merged 2 commits into from Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions css/css-overflow/text-overflow-ellipsis-input-ref.html
@@ -0,0 +1,18 @@
<!doctype html>
<title>CSS Test Reference</title>
<style>
input {
text-overflow: ellipsis;
width: 100px;
font-size: 16px;
display: none;
}
</style>
<input value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
<script>
let input = document.querySelector("input");
input.style.display = "revert";
let computed = getComputedStyle(input);
for (let prop of ["padding-top", "padding-right", "padding-bottom", "padding-left"])
input.style[prop] = computed[prop];
</script>
15 changes: 15 additions & 0 deletions css/css-overflow/text-overflow-ellipsis-input.html
@@ -0,0 +1,15 @@
<!doctype html>
<title>text-overflow: ellipsis on an input should look the same with and without specified padding</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#block-ellipsis">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1577530">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="match" href="text-overflow-ellipsis-input-ref.html">
<style>
input {
text-overflow: ellipsis;
width: 100px;
font-size: 16px;
}
</style>
<input value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">