Is it possible to get the Firefox developer tools Font Inspector data programmatically from the DOM? I.e., getting the used font from the DOM?
Asked
Active
Viewed 62 times
1 Answers
0
You want to get the final CSS style for certain elements? You can use getComputedStyle:
window.getComputedStyle(document.getElementById('post-form')).fontFamily

NoBugs
- 9,310
- 13
- 80
- 146