If the CSS snippet you have shown happens to reside in a uibinder file, try escaping prefixed rules with a \ .
\-fx-label-padding ...
The CSS parser of gwt used to have trouble with those .
Thank you for reporting your experience with the javafx webview. It has been an interesting read.
Could you explain your decision to migrate to web technologies instead of migrating to javafx and deploying it in the browser http://docs.oracle.com/javafx/2/deployment/deployment_toolkit.htm ?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
So, now that I have read through the docs you linked, I suspect you are confusing different applications of CSS in the java fx technology stack.
The kind of CSS you are talking and linked about is used to style java fx components themselves, meaning objects in the scene graph. This version of CSS is based on CSS2.1, as you cited, with slight modifications (for example the prefixed rules you mentioned).
The CSS, that gets applied to the DOM inside the Webview, is standard CSS and since the Webview is based on WebKit, I suspect it parses the '-webkit' prefix, if any (haven't tested this).
Having said this, I have no idea why your initial tries with the unprefixed padding rules did not apply. You should probably file this as a bug.
Correct me if I misunderstood the java fx docs.
--
Apparently the document that I linked (the only I could find about CSS support in JavaFX) only applies to normal JavaFX development and not to the capabilities of the WebView itself (based on webkit).
It does appear that padding-left
and other related layout properties work just fine in the JavaFX WebView. There was something stopping my WebView from loading up all of the CSS (unknown reason). Thus the last few values (which I needed) weren't available for styling the document.
I did some major cleaning and rebuilding of my project as well as wiping of all temp and cache files and this issue 'went away on its own'.
I can see the padding applied properly in the WebView now and I can see it applied in FireBug Lite:
padding-left 22px
I had verified that the rule was in my app.css in the .war file, so GWT was generating and bundling things properly. There appears to have been an issue somewhere on the JavaFX WebView side.
Thank you for your help!
So, now that I have read through the docs you linked, I suspect you are confusing different applications of CSS in the java fx technology stack.
The kind of CSS you are talking and linked about is used to style java fx components themselves, meaning objects in the scene graph. This version of CSS is based on CSS2.1, as you cited, with slight modifications (for example the prefixed rules you mentioned).
The CSS, that gets applied to the DOM inside the Webview, is standard CSS and since the Webview is based on WebKit, I suspect it parses the '-webkit' prefix, if any (haven't tested this).
Having said this, I have no idea why your initial tries with the unprefixed padding rules did not apply. You should probably file this as a bug.
Correct me if I misunderstood the java fx docs.