[Webkit-unassigned] [Bug 236108] New: line-height: 1px on <input type=search> is not reflected in getComputedStyle()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 3 15:40:45 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=236108

            Bug ID: 236108
           Summary: line-height: 1px on <input type=search> is not
                    reflected in getComputedStyle()
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon at bocoup.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

What steps will reproduce the problem?
(1) Apply a 'line-height' that is smaller than 'normal' on <input type=search>
(2) Call getComputedStyle(input).lineHeight
(3)

What is the expected result?
1px

What happens instead?
assert_equals: expected "1px" but got "normal"

There's some magic for text entry widgets to change the used value of 'line-height' to 'normal' if it was smaller than 'normal', but the computed value should not be affected by this. Only used value.

This doesn't happen with the type=text, type=url, type=email, type=password.

Spec change: https://github.com/whatwg/html/pull/5462
Test: https://github.com/web-platform-tests/wpt/pull/32684

(Maybe related: https://bugs.webkit.org/show_bug.cgi?id=203751 )

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220203/f5b3d3bc/attachment-0001.htm>


More information about the webkit-unassigned mailing list