This is uncommon function for them ; but . some plants have such roots
These are aerial roots ( Hanging in the air ) and thus are exposed to light .
They develop photosynthetic ( Green with chlorophyll/ chloroplasts ) tissue and thus carry out the function .
Epiphytic orchids and Tinospora are good examples,
click on the link below to see photosynthetic roots of an orchid .