Bug 1931425 - Limit how often moz-label's #setStyles runs r=reusable-components-revie...
[gecko.git] / layout / reftests / forms / textbox / accesskey-1-dyn.xhtml
blob797d61b02caaeb4a2ec75a4dc71db821ce296717
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/global.css"?>
3 <window title="textbox access key tests (see bug 698185)"
4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
5 xmlns:html="http://www.w3.org/1999/xhtml">
6 <html:style type="text/css">
7 hbox {
8 margin-top: 0px;
9 padding-top: 0px;
10 font-size: 36px;
12 label, input {
13 -moz-appearance: none;
14 background: inherit;
15 border: none 0px;
17 label {
18 margin-top: 0px;
19 padding-top: 0px;
20 margin-bottom: 0px;
21 padding-bottom: 0px;
23 input {
24 margin-top: 12px;
25 padding-top: 8px;
26 margin-bottom: 5px;
27 padding-bottom: 9px;
29 </html:style>
31 <hbox align="baseline">
32 <label value="foo" accesskey="s"/>
33 <input xmlns="http://www.w3.org/1999/xhtml" value="text"/>
34 </hbox>
35 <script>
36 onload = () => {
37 let label = document.querySelector("label");
38 label.getBoundingClientRect();
39 label.value = "test";
41 </script>
42 </window>