Hey Nicolas,
I'm migrating some nice HTML-fragment to GWT. Thanks to UiBinder this
is really easy and I get a nice result in few hours.
I notice the uiBinder seems to rewrite the CSS rules according to
browser support (I may be wrong) : my CSS uses CSS3 box-shadow :
box-shadow: 2px 2px 5px #000;
-moz-box-shadow: 2px 2px 5px #000;
-webkit-box-shadow: 2px 2px 5px #000;
This works fine on my Chrome browser, but when I use the uibinder
version I dont' have shadows anymore. The CSS rule filter should not
remove any -webkit* rule when targeting a webkit based browser,
sould'it ? Also the box-shadow is supported by recent webkit browsers
(it is on chrome 4, but this is in the dev channel)
You should probably use the conditional CSS properties to target
specific browsers:
http://code.google.com/p/google-web-toolkit/wiki/CssResource#Conditional_CSS
2nd question : If my CSS uses background-image: url(...), can I
include those images in my ClientBundle and still make references to
them in my CSS fragement ?
Yep, that's possible with image sprits:
http://code.google.com/p/google-web-toolkit/wiki/CssResource#Image_Sprites
All the best,
--
Arthur Kalmenson
On Thu, Dec 17, 2009 at 7:03 AM, nicolas.deloof
nicolas.del...@gmail.com wrote:
Hi
I'm migrating some nice HTML-fragment to GWT. Thanks to UiBinder this
is really easy and I get a nice result in few hours.
I notice the uiBinder seems to rewrite the CSS rules according to
browser support (I may be wrong) : my CSS uses CSS3 box-shadow :
box-shadow: 2px 2px 5px #000;
-moz-box-shadow: 2px 2px 5px #000;
-webkit-box-shadow: 2px 2px 5px #000;
This works fine on my Chrome browser, but when I use the uibinder
version I dont' have shadows anymore. The CSS rule filter should not
remove any -webkit* rule when targeting a webkit based browser,
sould'it ? Also the box-shadow is supported by recent webkit browsers
(it is on chrome 4, but this is in the dev channel)
2nd question : If my CSS uses background-image: url(...), can I
include those images in my ClientBundle and still make references to
them in my CSS fragement ?
Cheers,
Nicolas
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors