Bug 67424 - getComputedStyle() returns "italic" instead of "oblique"
Summary: getComputedStyle() returns "italic" instead of "oblique"
Status: NEW
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: 2011-09-02 16:58 PDT (History)
1 user (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 . . .