Using nth-child CSS selector with UiBinder in GWT -


in web app, want have table every other row colored different background. using gwt , in uibinder file have style information this:

<ui:style>    .productlist {      cursor: pointer;      width: 50em;      padding: 10px 10px 0px 10px;    }    .productlist tr:nth-child(even) {      background-color: silver;    } </ui:style> 

i believe correct css works in browser. however, when running app in dev mode, crash saying css cannot interpreted. if replace "even" "5", error saying uibinder expected <ident>.

has used nth-child css selector gwt before?

this known issue.

you can work around problem escaping parenthesis avoid confusing poor gwt css parser:

.productlist tr:nth-child\(even\) {      background-color: silver;  } 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -