This visitor will replace the following gss: {@code}.foo padding: 5px; gwt-sprite: imageResource; width: 150px; } } to the corresponding gss: {@code}.foo padding: 5px; /* @alternate */ width: eval("imageResource.getWidth", "px"); /* @alternate */ height: eval("imageResource.getHeight", "px"); /* @alternate */ overflow: hidden; /* @alternate */ background: resourceUrl("imageResource") eval("imageResource.getLeft", "px") eval("imageResource.getTop", "px") no-repeat; width: 150px; } }
This visitor will also check the presence of the {@link ImageOptions} annotation on theimage resource in order to support correctly horizontal or vertical repetition.
|
|
|
|