0

I'm running into a strange issue -- in one of my form elements, it looks like text-shadow is being added only for IE 8.

Even when I add a:

text-shadow: 0px transparent;

It still appears. Has anyone seen something like this before?

I am using dojo / dijit, and when I specifically target the element even with something like

color: red;

It does not have any effect in IE 8, though it does in other modern browsers. Here is a screenshot:

enter image description here

streetlight
  • 5,968
  • 13
  • 62
  • 101
  • What is the HTML for this form element? It looks like a disabled textarea. Note that IE8 doesn't support text-shadow, so you won't be able to use that property to change it. (Also, to remove a text-shadow, you use `text-shadow: none`.) – BoltClock Jun 03 '14 at 17:09
  • I am using dijit.form.NumberSpinner (http://dojotoolkit.org/reference-guide/1.9/dijit/form/NumberSpinner.html) to generate the HTML; thanks for the reference as well. I'm not sure if it's text-shadow or not -- what else could it look like? – streetlight Jun 03 '14 at 17:24
  • Ah, so it's a custom spinner control. Well, it looks like embossed text (with a background that isn't the usual white), which is why I suspect it's a disabled control. That is applied by the browser based on system rendering of controls and is not something usually targetable with CSS. – BoltClock Jun 03 '14 at 17:27
  • Ah yeah it is disabled. That's crazy it's un-targetable. Thanks for the info though :) – streetlight Jun 03 '14 at 17:38
  • 1
    That's that, then. No problem, I posted an answer. I've gotta get going now! :) – BoltClock Jun 03 '14 at 17:55

2 Answers2

0

You must be using either a ms filter or poly for this....

Are you using Modernizr? If not I recommend using it so you can call ie8 css to disable or change the css method on this text shadow.

HEre is a similar same issue/answer:

Text-Shadow: IE8

Community
  • 1
  • 1
Riskbreaker
  • 4,621
  • 1
  • 23
  • 31
0

IE does not support the text-shadow property prior to version 10, so setting it won't have any effect there.

Since your form control is disabled, that's IE8 rendering it according to how the OS draws disabled controls in general. There isn't much you can do to change this, unfortunately.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356