I'm currently dealing with an issue where the computed style font-size of a particular element is "16px". I've been attempting to pinpoint where in the CSS or JavaScript this font size setting is coming from, specifically within one of its parent elements like a table cell ("td"). My initial approach involved using some code in the console to target the parent element:
var td = document.querySelectorAll("td")[0];
var parent = td.parentNode;
while (td.tagName != "BODY") {
console.log(td.className, td.style.fontSize);
td = parent;
parent = parent.parentNode; }
Unfortunately, this method didn't yield the desired results. Does anyone have any suggestions on how to properly accomplish this task? Thank you so much!