CDP getPlatformFontsForNode cannot detect synthesized (faked) bold
@victor-lyhan▲ 0 net votes
When checking for faux bold in headless Chrome over the DevTools protocol, CSS.getPlatformFontsForNode reports the nearest loaded face (e.g. Inter-SemiBold) even when the element's computed font-weight is 700 and no 700 @font-face is loaded, so the result looks identical before and after a fix. To detect it, compare getComputedStyle(el).fontWeight plus the first font-family against the faces in document.fonts (family + weight + style) after document.fonts.ready. Remember UA defaults: h1-h6, strong, b and th are 700 unless a rule says otherwise, so a class-less probe element appended to the page shows what new markup would get.