codegooglecom / querytemplates

Automatically exported from code.google.com/p/querytemplates
0 stars 0 forks source link

CSS stylesheet support #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
CSS stylesheet support can be used for Event Delegation directly from the
stylesheet to specially prepared methods. Simple mockup:

#browser.ie4 div.contents .section:load {
  stripTables: "odd-tr";
  modifySection: 10 arg1 "argument 2";
}

In this example selector is root for delegation with event stated at the
end. Properties are methods (what would class looks like ? :: ?) and
parameters are method's parameters, separated by space.

Additionally above example contains some browsercheck, which illustrates
another usecase for such functionality.

Probably best tool for this will be CSSTidy[1] with native PHP
implementation. Other possibility is PEAR class. Own implementation is also
considered.

[1] http://csstidy.sourceforge.net/

Original issue reported on code.google.com by tobiasz....@gmail.com on 26 Jan 2009 at 12:04

GoogleCodeExporter commented 9 years ago
You can read more about this on my blog:
http://tobiasz123.wordpress.com/2009/01/27/can-css-stylesheets-be-applied-on-the
-server-side/

Original comment by tobiasz....@gmail.com on 22 Feb 2009 at 1:08