Bug 200709

Summary: 'font-family: initial' acts like 'font-family: inherit' instead of getting the initial value
Product: WebKit Reporter: Simon Pieters (:zcorpan) <zcorpan>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: matt.sephton, mmaxfield, webkit-bug-importer, zhenyi
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
screenshot showing issue in Safari TP none

Description Simon Pieters (:zcorpan) 2019-08-14 05:10:22 PDT
See https://github.com/w3c/csswg-drafts/issues/4192 (and in particular the first comment by fantasai)

Test: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7120

<!DOCTYPE html>
<style>
div {
font-family: fantasy;
 }
span { font-family: initial }
</style>
The following two lines should look the same:<br>
test
<div>
<span>test</span>
</div>


This works as expected in Blink and Gecko.
Comment 1 Radar WebKit Bug Importer 2019-08-14 10:02:03 PDT
<rdar://problem/54306281>
Comment 2 Matt Sephton 2022-01-17 08:10:19 PST
Created attachment 449334 [details]
screenshot showing issue in Safari TP

Can confirm this is still an issue on Safari 14, 15 and TP.