2

I am trying to use styles for the scrollbars in webkit. The CSS selectors look like this:

::-webkit-scrollbar-corner
::-webkit-scrollbar-track-piece:disabled

and so on.

When I use those in a ClientBundle as a CSSResource, the compiler is complaining about those selectors. This results in warnings during compile time, not errors.

But those styles aren't being applied.

I tried to escape the colons, dashes etc. without luck. The literal function doesn't apply here either as it is only used in combination with values, not selectors.

I also used the @external annotation to avoid obfuscation of the selectors.

Nothing seems to work.

Has anyone an idea how to get those styles into my ClientBundle?

Greetings, Matthias

3
  • 1
    Are you using the @NotStrict annotation on your CssResource? google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/… Commented Sep 10, 2010 at 15:23
  • Yes. If I understood correctly, this should only suppress compilation errors when a selector hasn't got a corresponding method in the CssResource Class. But I've just tried it again to make sure, and it didn't help. Commented Sep 10, 2010 at 15:44
  • I have a similar question, and it seems like the same type of problem Commented Jan 6, 2012 at 21:12

1 Answer 1

1

You can use "Literal function" for non standard CSS definitions http://code.google.com/p/google-web-toolkit/wiki/CssResource#Literal_function

Sign up to request clarification or add additional context in comments.

1 Comment

This only works for "property values that do not conform to the CSS grammar". I need the same thing, but for selectors. I've tried the literal function on the selectors without luck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.