View Single Post
Old 11-29-2013, 12:18 PM   #103
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,484
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That seems rather simple minded. What happens if there are multiple classes or if some other type of css rule affects the element? If I do implement this feature it will popup a list of all rules that affect the element and allow you to choose which one to go to. However, I dont know how simple it will be to implement. Finding which rules affect an element is trivial, finding the position of those rules in the stylesheet is not, since the css parser calibre uses does not preserve that information, but let's see if I can hack something together.
kovidgoyal is offline