The Mishnah in the first chapter of Masechet Shabbat teaches that the Hachamim (Rabbis) made a decree that a person not read by the light of a candle on Shabbat. The decree applies not just to reading, but to any kind of labor or intensive activity that requires a lot of light. The reason is that in those days, they had candles with something like a dish of oil and a wick. The Rabbis were nervous that a person, without thinking, might tilt the candle to increase the light, causing it to burn more brightly and making him guilty of mav'ir, of kindling fire on Shabbat. Therefore, they made this decree.
The question came up in more modern times: would this same decree apply to reading by the light of electricity? There was a great Rabbi in the early 1900s, Rabbi Ovadia Hadaya, who was the brother-in-law of the great Chief Rabbi Hacham Yaakov Kassin. He wrote a teshuva (rabbinic responsum) called Yaskil Avdi, and he said that this gezerah (decree) indeed applied to electricity. He forbade reading by the light of electricity. He garnered proof for this because the Gemara says that even if a person puts the candle all the way up on a high shelf where he can't reach it, it's still asur (forbidden) to read. So he said, “What's the difference between that and electricity?” Even though you can make the argument that with electricity there's less of a chance, or no chance, that a person will adjust it or play around with it, once the Hacham made the gezerah, it's an overarching gezerah, and it's asur across the board.
However, Hacham Ovadia, zichrono livracha (may his memory be a blessing), disagreed. He said it's different when you place the candle on a high shelf: there's still part of the decree because it's a candlelight; you might come to use it when a person is close by. But he says that with electricity, there's no option whatsoever for tilting or adjusting it; you can't play around with it. Even if a person has, let's say, a dimmer that goes up and down, he says that's a new gezerah, and we can't make up our own new gezerah that you might shut the light or whatnot. Therefore, he said the gezerah doesn't apply, and a person is allowed to read and do other activities by the light of an electric light on Shabbat.

