Bug 200709 - 'font-family: initial' acts like 'font-family: inherit' instead of getting the initial value
Summary: 'font-family: initial' acts like 'font-family: inherit' instead of getting th...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-14 05:10 PDT by Simon Pieters (:zcorpan)
Modified: 2022-01-17 08:11 PST (History)
4 users (show)

See Also:


Attachments
screenshot showing issue in Safari TP (349.81 KB, image/png)
2022-01-17 08:10 PST, Matt Sephton
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.