Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 91953 invoked from network); 27 Aug 2008 17:20:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 17:20:43 -0000 Received: (qmail 89105 invoked by uid 500); 27 Aug 2008 17:20:37 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 89063 invoked by uid 500); 27 Aug 2008 17:20:37 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 88992 invoked by uid 99); 27 Aug 2008 17:20:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 10:20:36 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 17:19:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9797D234C1C4 for ; Wed, 27 Aug 2008 10:19:44 -0700 (PDT) Message-ID: <1324945060.1219857584620.JavaMail.jira@brutus> Date: Wed, 27 Aug 2008 10:19:44 -0700 (PDT) From: "Jeanne Waldman (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (TRINIDAD-205) Need to avoid IE's number of CSS selectors limitation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TRINIDAD-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626194#action_12626194 ] Jeanne Waldman commented on TRINIDAD-205: ----------------------------------------- I looked at the code briefly and it looks like it would work. However, I think the implementation I mentioned in my note above is cleaner. Blake and I discussed some approaches together and this is the one we felt was cleanest because it kept the knowledge of the file limitations to the writeCSS code. What do you think? > Need to avoid IE's number of CSS selectors limitation > ----------------------------------------------------- > > Key: TRINIDAD-205 > URL: https://issues.apache.org/jira/browse/TRINIDAD-205 > Project: MyFaces Trinidad > Issue Type: Bug > Affects Versions: 1.0.1-incubating-core-SNAPSHOT > Reporter: Jeanne Waldman > Assignee: Simon Lessard > Attachments: TRINIDAD-205.patch > > > it turns out that IE has a limit to the size of a CSS file. It's not the actual size of the file, but rather it is the > # of CSS selectors. I did a test and found out that the limit is 4095 CSS selectors. > Firefox doesn't appear to have a limit. > As you may know, the CSS file we generate contains both compressed and uncompressed styles, like this: > .af_inputText_content, .x01 {background-color: blue} > Our renderers render a shortened styleclass, unless > the DISABLE_CONTENT_COMPRESSION flag is set to true in web.xml, then it renders the long styleclass. >