From adffaces-issues-return-1157-apmail-incubator-adffaces-issues-archive=incubator.apache.org@incubator.apache.org Mon Oct 02 23:08:50 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-issues-archive@locus.apache.org Received: (qmail 15460 invoked from network); 2 Oct 2006 23:08:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 23:08:50 -0000 Received: (qmail 90604 invoked by uid 500); 2 Oct 2006 23:08:50 -0000 Delivered-To: apmail-incubator-adffaces-issues-archive@incubator.apache.org Received: (qmail 90589 invoked by uid 500); 2 Oct 2006 23:08:50 -0000 Mailing-List: contact adffaces-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-issues@incubator.apache.org Delivered-To: mailing list adffaces-issues@incubator.apache.org Received: (qmail 90576 invoked by uid 99); 2 Oct 2006 23:08:50 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 16:08:50 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:36974] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id E6/3A-24395-CDB91254 for ; Mon, 02 Oct 2006 16:08:19 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96A747142E1 for ; Mon, 2 Oct 2006 16:07:20 -0700 (PDT) Message-ID: <28586076.1159830440614.JavaMail.root@brutus> Date: Mon, 2 Oct 2006 16:07:20 -0700 (PDT) From: "Jeanne Waldman (JIRA)" To: adffaces-issues@incubator.apache.org Subject: [jira] Commented: (ADFFACES-206) CSS 2 composite selector is not supported in MSIE 6 In-Reply-To: <1903680.1159447610314.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/ADFFACES-206?page=comments#action_12439341 ] Jeanne Waldman commented on ADFFACES-206: ----------------------------------------- Simon, I was thinking of a way that is very similar to your #2. I rewrote your example to fit my idea. 2) Alter CSSGenerator to use a different path for MSIE so that composite selectors get reduced to a single selector by pair of two and add code to renderStyleClasses combine the classes accordingly to see if it was defined in the skin.Here's a little example of that solution: af|myComponent:state1:state2::subComponent CSS generator first split that into 3 selectors (current behavior): af|myComponent with states :state1 and state2 af|myComponent::subComponent Then sort them alphabetically (will improve performance in the end, especially in renderStyleClasses): af|myComponent:state1:state2 af|myComponent::subComponent Notice that you cannot reorder where the state pseudo-classes are in relation to the main selector/pseudo-elements. If you do, it totally changes the meaning of the style definition. In the shortened stylemap, we currently do not put pseudo-classes. So we'd put af|myComponent and af|myComponent::subComponent. We need a method similar to renderStyleClasses, but where you know which ones are the states, and which one is the main selector. So renderStyleClassWithStates(selector, states), and we render all the combinations of selector-state1 selector-state2 selector-state1-state2 (with the states being alphabetized.) If selector was shortened to x10, for example, it would be x10-state1, x10-state2, x10-state1-state2 that we would render > CSS 2 composite selector is not supported in MSIE 6 > --------------------------------------------------- > > Key: ADFFACES-206 > URL: http://issues.apache.org/jira/browse/ADFFACES-206 > Project: MyFaces ADF-Faces > Issue Type: Bug > Components: Skinning > Environment: Microsoft Internet Explorer 6 (and most likely older versions as well) > Reporter: Simon Lessard > > Microsoft Internet Explorer 6 does not support CSS 2 composite selectors, e.g. ".someClass.anotherClass". However, the skinning engine uses those for states mainly. For example, af|component:myState will be parsed to .af_component.p_AFMyState in the generated CSS and the renderer will add both classes on the component. > MSIE 6 only evaluate the latest class in the classe list when evaluating composite selector which has very bad results for some component. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira