blinkftw icon indicating copy to clipboard operation
blinkftw copied to clipboard

<blink> should only affect text nodes

Open mathiasbynens opened this issue 12 years ago • 11 comments

Gecko and Presto only support text blink because it’s really a text-decoration feature. Inputs and other elements shouldn’t blink — only text nodes should.

E.g. <blink>foo<input></blink>

mathiasbynens avatar Apr 15 '13 12:04 mathiasbynens

Oh... That'd be a bit harder now that it's css only.

mrdoob avatar Apr 15 '13 12:04 mrdoob

It’d be impossible using only CSS, as there’s no way to select text nodes without referring to a wrapper element.

mathiasbynens avatar Apr 15 '13 12:04 mathiasbynens

can try color: transparent; but IE6 support =(

korywka avatar Apr 15 '13 13:04 korywka

@bravedick Wouldn’t that also apply to text in <input>s?

mathiasbynens avatar Apr 15 '13 13:04 mathiasbynens

I guess blink lovers would love blinking blocks. Also, pink bold comic sans.

sylvainpolletvillard avatar Apr 15 '13 13:04 sylvainpolletvillard

input {color: #000 !important} =)

korywka avatar Apr 15 '13 13:04 korywka

@mathiasbynens http://codepen.io/anon/pen/ibKrg

korywka avatar Apr 15 '13 13:04 korywka

@bravedick haha!

mrdoob avatar Apr 15 '13 13:04 mrdoob

@bravedick Blinks in Firefox.

mathiasbynens avatar Apr 15 '13 13:04 mathiasbynens

@bravedick :+1:

yyolk avatar Apr 15 '13 20:04 yyolk

Can't you just blink input { animation: none; } or something?

emackey avatar Apr 16 '13 21:04 emackey