RESOLVED DUPLICATE of bug 214230 228540
The computed value of the font-weight property should be a number
https://bugs.webkit.org/show_bug.cgi?id=228540
Summary The computed value of the font-weight property should be a number
Šime Vidas
Reported 2021-07-28 00:44:30 PDT
Open this HTML document in Safari: <!doctype html> <b>lorem ipsum</b> <script> console.log( getComputedStyle(document.querySelector('b')).getPropertyValue('font-weight') ) </script> Online version: https://output.jsbin.com/canijip/quiet In Chrome and Firefox, the console logs "700", but in Safari it logs "bold". The CSS Fonts specification [1] states that the computed value of the font-weight property is a number, so Safari should return "700" like the other browsers. [1]: https://drafts.csswg.org/css-fonts/#font-weight-prop
Attachments
Sam Sneddon [:gsnedders]
Comment 1 2021-07-28 04:13:32 PDT
*** This bug has been marked as a duplicate of bug 214230 ***
Note You need to log in before you can comment on or make changes to this bug.