From 69d6b65467216cba6f5fa902477de03258a7f171 Mon Sep 17 00:00:00 2001 From: "bryner%netscape.com" Date: Tue, 8 Jan 2002 01:21:18 +0000 Subject: [PATCH] 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 --- .../layout/forms/resources/content/select.xml | 19 ++++++++++++++++++- .../forms/resources/content/xbl-forms.css | 9 +++++++++ .../html/forms/resources/content/select.xml | 19 ++++++++++++++++++- .../forms/resources/content/xbl-forms.css | 9 +++++++++ 4 files changed, 54 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/forms/resources/content/select.xml b/mozilla/layout/forms/resources/content/select.xml index 5026f7ec7a7..3b849dd0ac6 100644 --- a/mozilla/layout/forms/resources/content/select.xml +++ b/mozilla/layout/forms/resources/content/select.xml @@ -513,5 +513,22 @@ - + + + + + + + + + + + + + + + + + + diff --git a/mozilla/layout/forms/resources/content/xbl-forms.css b/mozilla/layout/forms/resources/content/xbl-forms.css index a8a87752228..b4d846fdc6f 100644 --- a/mozilla/layout/forms/resources/content/xbl-forms.css +++ b/mozilla/layout/forms/resources/content/xbl-forms.css @@ -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. diff --git a/mozilla/layout/html/forms/resources/content/select.xml b/mozilla/layout/html/forms/resources/content/select.xml index 5026f7ec7a7..3b849dd0ac6 100644 --- a/mozilla/layout/html/forms/resources/content/select.xml +++ b/mozilla/layout/html/forms/resources/content/select.xml @@ -513,5 +513,22 @@ - + + + + + + + + + + + + + + + + + + diff --git a/mozilla/layout/html/forms/resources/content/xbl-forms.css b/mozilla/layout/html/forms/resources/content/xbl-forms.css index a8a87752228..b4d846fdc6f 100644 --- a/mozilla/layout/html/forms/resources/content/xbl-forms.css +++ b/mozilla/layout/html/forms/resources/content/xbl-forms.css @@ -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.