javascript - Why will Webkit not repaint my webpage properly? -
javascript - Why will Webkit not repaint my webpage properly? -
i have somewaht of unusual problem. not sure if screwing or if maybe bug in webkit.
what doing using more or less complex css tricks (:after , content, sibling selector, etc) , custom data-attributes indicate if input fields of form valid or not. have info attribute "data-valid" on each input field attribute "data-validate", contains regular expression. on keyup run regular look against value of input , set data-valid accordingly. have little div next input, styled using data-valid sensitive attribute selector. background show ok symbol if sibling's input data-valid attribute true , show fail symbol if set false.
because might hard understand, stitched jsfiddle, can @ yourself.
all works fine in firefox 6 , ie9. however, in both webkit based browsers (chrome + safari) not work 100% correctly. allthough data-valid attribute changes correctly, styled div not alter it's appearance until either input additional characters or unfocus input field. looks webkit browsers fail repaint / restyle particular div.
i don't know what's going on, rather confident, should work expect to. hope can come insight or explaination , maybe fix/workaround.
thanks alot!
it's bit complicated, i'm not sure, selectors this:
input[data-valid="true"]+div.indicator
i think you're suffering same bug discussed in question: css attribute selector + descendant gives bug in webkit?
@dadu, owner of question, has filed bug report, nil seems have come of yet.
javascript jquery css dom webkit
Comments
Post a Comment