work-in-progress for select size=1. not turned on yet.

git-svn-id: svn://10.0.0.236/trunk@111526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%netscape.com
2002-01-08 01:21:18 +00:00
parent 10030f36c5
commit 69d6b65467
4 changed files with 54 additions and 2 deletions

View File

@@ -513,5 +513,22 @@
</binding>
<binding id="select"/>
<binding id="select" extends="xul:menu">
<content sizetopopup="true">
<xul:label flex="1" value="Dummy" style="border: 1px solid red"/>
<xul:dropmarker/>
<xul:menupopup style="display:-moz-popup!important">
<children/>
</xul:menupopup>
</content>
</binding>
<binding id="select-option" extends="xul:menuitem">
<content>
<xul:label>
<children/>
</xul:label>
</content>
</binding>
</bindings>

View File

@@ -46,6 +46,15 @@ select, select[size="1"] {
-moz-binding: url("chrome://forms/content/select.xml#select");
}
select[size] > option {
-moz-binding: none;
}
select > option,
select[size="1"] > option {
-moz-binding: url("chrome://forms/content/select.xml#select-option");
}
/*
* The following rules are copied from forms.css, for widgets that aren't yet
* defined in XBL.

View File

@@ -513,5 +513,22 @@
</binding>
<binding id="select"/>
<binding id="select" extends="xul:menu">
<content sizetopopup="true">
<xul:label flex="1" value="Dummy" style="border: 1px solid red"/>
<xul:dropmarker/>
<xul:menupopup style="display:-moz-popup!important">
<children/>
</xul:menupopup>
</content>
</binding>
<binding id="select-option" extends="xul:menuitem">
<content>
<xul:label>
<children/>
</xul:label>
</content>
</binding>
</bindings>

View File

@@ -46,6 +46,15 @@ select, select[size="1"] {
-moz-binding: url("chrome://forms/content/select.xml#select");
}
select[size] > option {
-moz-binding: none;
}
select > option,
select[size="1"] > option {
-moz-binding: url("chrome://forms/content/select.xml#select-option");
}
/*
* The following rules are copied from forms.css, for widgets that aren't yet
* defined in XBL.