Bug 67424

Summary: getComputedStyle() returns "italic" instead of "oblique"
Product: WebKit Reporter: Aryeh Gregor <ayg>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Minor CC: ahmad.saleem792, ap, mmaxfield
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Description Aryeh Gregor 2011-09-01 12:27:46 PDT
Test case:

data:text/html,<!doctype html>
<span style=font-style:oblique></span>
<script>
alert(getComputedStyle(document.querySelector("span")).fontStyle)
</script>

Chrome 15 dev alerts "italic".  Firefox 8.0a2 alerts "oblique".  I didn't test in other browsers, but really, it's pretty obvious that Chrome is wrong here.  Not likely to be high impact, since no one uses "oblique", but . . .
Comment 1 Ahmad Saleem 2022-07-24 05:02:43 PDT
I am unable to reproduce this bug in Safari 15.6 on macOS 12.5, it returns "oblique" as expected in the test case.

JSFiddle - https://jsfiddle.net/9g8rtod7/show

Chrome Canary 106 returns "italic" but Firefox Nightly 104 matches with Safari 15.6. I think it is Chrome bug and not Safari and can be marked as "RESOLVED INVALID" or "RESOLVED CONFIGURATION CHANGED". Thanks!