Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

find out where inline css comes from

I have an element which receives inline style from some js function. I found the function. but wanted to ask, is there a way to find out what function put that inline style? (in "computed" tab, I saw all the css files which affected this element, but inline styleshs the title "element.style" , is there any other way?

like image 530
Tal Gvili Avatar asked Oct 14 '25 23:10

Tal Gvili


1 Answers

Using Chrome dev tools, you can add breakpoint on elements when any modification happens to them.

Right click after inspecting the element, and select Break on. Now whenever that element gets modified, Dev tools will go to the source of the function doing that job.

like image 73
jpedroribeiro Avatar answered Oct 17 '25 14:10

jpedroribeiro