Bug 67424
Summary: | getComputedStyle() returns "italic" instead of "oblique" | ||
---|---|---|---|
Product: | WebKit | Reporter: | Aryeh Gregor <ayg> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Minor | CC: | ahmad.saleem792, ap, mmaxfield |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux |
Aryeh Gregor
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 . . .
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
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!