The spec doesn't mention font-synthesis as a subproperty of font shorthand, but given its name, it probably should be.
Gecko resets font-synthesis when setting font, while WebKit doesn't.
Test code:
<!DOCTYPE html>
<div style="font-synthesis: style; font: 14px sans-serif;"></div>
<script>
alert(document.querySelector('div').style.fontSynthesis);
</script>
cc @nattokirai @litherum
The spec doesn't mention
font-synthesisas a subproperty offontshorthand, but given its name, it probably should be.Gecko resets
font-synthesiswhen settingfont, while WebKit doesn't.Test code:
cc @nattokirai @litherum