Custom CSS parsing error

Custom CSS parsing error

There's a bug in the mechanism that checks uploaded Custom CSS as follows.

If a rule mentions "position: static" it somehow causes the parser to remove commas from font-family rules elsewhere. This seems unbelievably unlikely, but it's very repeatable.

1. Starting with a fresh wiki. I used Cornflower Ribbon theme, and moved sidebar to left.

2. Prepare and upload CSS as follows:

/* -------------------------
Buttons: Edit, Page options, Create new
------------------------ */
table#parent div#editlink,
table#parent div#zwMorePageOptions,
td#leftSideBar div#newlink           {
  font-family: Verdana, Arial, sans-serif;   
}

div#abc {
  position: static;
}

Observe that the Verdana etc does not get applied, and that the CSS as delivered from zoho looks like this:

table#parent div#editlink, table#parent div#zwMorePageOptions, td#leftSideBar div#newlink {
font-family: Verdana Arial sans-serif
}
div#abc {  }

Observe lack of commas in the font-family attribute. (In addition to stripping out the position attribute.)

- Graham


My issue tracking id GWZ1019





                            Zoho Desk Resources

                            • Desk Community Learning Series


                            • Digest


                            • Functions


                            • Meetups


                            • Kbase


                            • Resources


                            • Glossary


                            • Desk Marketplace


                            • MVP Corner


                            • Word of the Day



                                Zoho Marketing Automation


                                        Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now