I'm having trouble with repeating-linear-gradient with tables. Basically, I can't make it look nice with tables, especially on Chrome. Even though I apply said rule to a tr element, it looks like td elements inherit it and instead of having a continuous stripes, I get 'jagged' ones (=stripes do not continue over cell borders).
.striped {
background: repeating-linear-gradient(
45deg,
#FFFFFF,
#FFFFFF 10px,
#DDDDDD 10px,
#DDDDDD 20px
)}
Here's a Codepen illustrating the issue:
http://codepen.io/merryprankster/pen/bpeCc
With Chrome, it looks really awful. With Firefox, almost good but not exactly (sometimes the stripes are of different width - off by one pixel - across cell boundaries).
EDIT: to clarify, I need to target a specific row, not whole table. So yes, the point about styling a tr is actually relevant.