getComputedStyle returns incorrect font-size when set to "unset" or "inherit"

Fixed Issue #9748455


T.J. C.
Nov 10, 2016
This issue is public.
Fixed in build #
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce


Also see:


<span style="font-size: 30px;"><input/></span>

span input {
font-size: inherit;
input {
font-size: 15px;

Gives “15px” instead of “30px” for the fontSize of the input from both getComputedStyle and currentStyle. Chrome and Firefox report 30px as expected.

The input is rendered correctly (with a 30px font size), it’s just the information from the method/property that’s incorrect.


0 attachments

    Comments and activity

    • Apologies: I’ve replicated it in IE11. The person posting the original question on Stack Overflow said they’d replicated it on both IE and Edge.

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Title from “getComputedStyle and currentStyle return incorret values when inherit is involved” to “getComputedStyle returns incorrect font-size when set to "unset" or "inherit"”

      Changed Assigned To from “Brad E.” to “Saqib A.”

      Changed Status to “Confirmed”

      Changed Steps to Reproduce

      Changed Status from “Confirmed” to “Fixed”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 15063 and is available in our latest Insider Preview build.

      Best Wishes,

      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in