From 417d4dd5abbab968c2ef90a0f630380f00a0c9cf Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Wed, 28 Jul 1999 21:43:43 +0000 Subject: [PATCH] Added generated content for optgroups, fixed option to be display:block change optgroup inside of option git-svn-id: svn://10.0.0.236/trunk@41490 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/document/src/ua.css | 9 ++++++++- mozilla/layout/style/ua.css | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/document/src/ua.css b/mozilla/layout/html/document/src/ua.css index 9224b790aba..0214c3bbae6 100644 --- a/mozilla/layout/html/document/src/ua.css +++ b/mozilla/layout/html/document/src/ua.css @@ -849,16 +849,23 @@ option.selectedfocus { } optgroup { + display:block; font-style:italic; font-weight:bold; } -optgroup > option { +optgroup option { + display:block; padding-left:20px; font-style:normal; font-weight:normal; } +optgroup:before { + display:block; + content:attr(label); +} + textarea { vertical-align: bottom; border: 2px inset #c0c0c0; diff --git a/mozilla/layout/style/ua.css b/mozilla/layout/style/ua.css index 9224b790aba..0214c3bbae6 100644 --- a/mozilla/layout/style/ua.css +++ b/mozilla/layout/style/ua.css @@ -849,16 +849,23 @@ option.selectedfocus { } optgroup { + display:block; font-style:italic; font-weight:bold; } -optgroup > option { +optgroup option { + display:block; padding-left:20px; font-style:normal; font-weight:normal; } +optgroup:before { + display:block; + content:attr(label); +} + textarea { vertical-align: bottom; border: 2px inset #c0c0c0;