<!DOCTYPE html>
<meta name=fuzzy content="maxDifference=0-3; totalPixels=0-100">
<head>
<meta charset="utf-8">
<!--
The purpose of this test is to exercise the codepath through
FileUploadControlIntrinsicInlineSize that uses the non-min-default
intrinsic size (default_label_width rather than min_default_label_width).
Normally this codepath is only followed for (non-English) locales where the
IDS_FORM_FILE_NO_FILE_LABEL string is long enough to exceed the minimum size.
But since localization isn't fully supported in web_tests, here we construct
a custom font where the '0' glyph takes up no space, which tricks
FileUploadControlIntrinsicInlineSize into computing a minimum width of zero,
thus using default_label_width in all cases.
If this approach turns out to be problematic then this test can be deleted.
-->
<style>
@font-face {
font-family: 'smol';
src: url('../../../third_party/Libertine/LinLibertine_R.woff');
unicode-range: U+30;
size-adjust: 0%;
}
input {
font-family: 'smol', sans-serif;
border: 5px solid red;
}
</style>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
document.fonts.ready.then(() => testRunner.notifyDone());
}
</script>
</head>
<body>
<input type="file">
</body>