id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 10841,Less broad CSS rules for styling ticket #properties table,Ethan Jucovy ,Ryan J Ollos,"I've set up a Trac site that loads a Javascript WYSIWYG editor to edit the ticket description field. The WYSIWYG editor creates a `` to present a toolbar to the user. Trac's `ticket.css` contains rules for `#properties table` which make the layout of this toolbar table look wrong, because it's a `
` that's a descendent of the `
`. So, in order to make the WYSIWYG toolbar display properly, I need to track down all the `#properties table` rules and suppress them with a more specific CSS selector in my own stylesheet. However, Trac's CSS rule is unnecessarily broad. The only table that the CSS is trying to style is a direct child of the properties fieldset, so using selectors like `#properties > table` instead of `#properties table` would have the same effect without accidentally styling other tables that might be inserted within the #properties node. I believe the CSS child selector has been supported in all browsers for a while now (IE7+).",defect,closed,normal,1.1.4,rendering,,normal,fixed,,,,,"On the ticket page, the CSS selectors descending from the `#properties table` are more precise.",