Hi Ann, You have to distinguish between: a) CSS as a Language (e.g. selectors, pseudo-selectors,...) b) CSS-properties
We only support the very basic attributes like font, color, background color (including some paint types), ... and some custom ones (for CTabFolder). I've sent a mail to this list after we shipped 4.1 where I highlight some problems with our current css treatment because we are not following general rules here (e.g. it is good practice to prefix custom attributes using -vendor (e.g. -moz, -webkit,...)) and our own SDK-CSS is not even valid CSS because the selector some of the selectors defined are simply invalid if you read the css spec. Sad enough I didn't get a response on it. My personal opinion on CSS is that we advertised it completely wrong because people now think they can apply all CSS-Properties they can in HTML which is far from true because naturally SWT has constraints we are not able to overcome. I think in reality only toolkits who completely draw the UI (like Swing, JavaFX, Browser-Rendering-Engines) are able to fully implement CSS-Properties but as said that's my personal opinion and others may disagree. Tom Am 15.08.11 19:40, schrieb Ann Smith: > Thank you Angelo that information is very helpful. For example for > shadows on my labels can I use this property within my application? > I am building a GUI and some of CSS2 support is ran from a browser > window. or can you direct me to any tutorials or projects that are GUI > based and have used CSS2? > > Regards, > Ann. > > On Mon, Aug 15, 2011 at 6:33 PM, Angelo zerr <angelo.z...@gmail.com > <mailto:angelo.z...@gmail.com>> wrote: > > Hi Ann, > > Just for your information, E4 CSS engine is based on W3C SAC Parser > API http://www.w3.org/Style/CSS/SAC/ to load CSS style properties. > The implementation used by E4 CSS engine is batik which supports > CSS2 (not CSS3). Problem with CSS3 that it doesn't exists Java > implementation for CSS3 (not for CSS2). Once it will exists CSS3 > implementation (SAC Parser), it will be easy to use it without > changing E4 CSS engine to use CSS3. > > Regards Angelo > > > 2011/8/15 Ann Smith <annsmith.smit...@gmail.com > <mailto:annsmith.smit...@gmail.com>> > > Thanks that is exactly what I was looking for. Do you call the > CTabFolder within the CSS files? or is there any tutorials out > there? > > Thanks for your help, > Ann > > > On Mon, Aug 15, 2011 at 4:18 PM, Bogdan Gheorghe > <gheor...@ca.ibm.com <mailto:gheor...@ca.ibm.com>> wrote: > > Hi Ann - > > Currently it is mainly css2 support with a number of custom > properties for CTabFolder. You can find these here: > _http://wiki.eclipse.org/E4/CSS/SWT_Mapping_ > > Regards, > B > > > From: Ann Smith <annsmith.smit...@gmail.com > <mailto:annsmith.smit...@gmail.com>> > To: E4 Project developer mailing list <e4-dev@eclipse.org > <mailto:e4-dev@eclipse.org>> > Date: 08/12/2011 04:43 AM > Subject: [e4-dev] css > Sent by: e4-dev-boun...@eclipse.org > <mailto:e4-dev-boun...@eclipse.org> > > > > ------------------------------------------------------------------------ > > > > Hi, > > Just wondering does e4 support css3 if using a stand alone > GUI? or is it only css2? > > Ann._______________________________________________ > e4-dev mailing list > e4-dev@eclipse.org <mailto:e4-dev@eclipse.org> > https://dev.eclipse.org/mailman/listinfo/e4-dev > > > > _______________________________________________ > e4-dev mailing list > e4-dev@eclipse.org <mailto:e4-dev@eclipse.org> > https://dev.eclipse.org/mailman/listinfo/e4-dev > > > > _______________________________________________ > e4-dev mailing list > e4-dev@eclipse.org <mailto:e4-dev@eclipse.org> > https://dev.eclipse.org/mailman/listinfo/e4-dev > > > > _______________________________________________ > e4-dev mailing list > e4-dev@eclipse.org <mailto:e4-dev@eclipse.org> > https://dev.eclipse.org/mailman/listinfo/e4-dev > > > > > _______________________________________________ > e4-dev mailing list > e4-dev@eclipse.org > https://dev.eclipse.org/mailman/listinfo/e4-dev _______________________________________________ e4-dev mailing list e4-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/e4-dev