Skip to content

[css-fonts] Should font-synthesis be reset by font shorthand? #1032

Description

@upsuper

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions