blob: d240c2d2d03613795eb608212decfa3f1ab7a0fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// NOTE that this test expects "font.minimum-size.x-western=9" to be set
// in the manifest.
const PAGE = `
<!doctype html>
<body lang="en-US">
<select>
<option style="font-size:24px">A</option>
<option style="font-size:6px">BCD</option>
</select>
`;
add_task(async function () {
const url = "data:text/html," + encodeURI(PAGE);
await BrowserTestUtils.withNewTab(
{
gBrowser,
url,
},
async function (browser) {
let popup = await openSelectPopup("click");
let menuitems = popup.querySelectorAll("menuitem");
is(
getComputedStyle(menuitems[0]).fontSize,
"24px",
"font-size should be honored"
);
is(
getComputedStyle(menuitems[1]).fontSize,
"9px",
"minimum font-size should be honored"
);
}
);
});
|