Bug 67424 - getComputedStyle() returns "italic" instead of "oblique"
Summary: getComputedStyle() returns "italic" instead of "oblique"
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 12:27 PDT by Aryeh Gregor
Modified: 2022-07-24 12:10 PDT (History)
3 users (show)

See Also:


Attachments

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