[Webkit-unassigned] [Bug 226972] New: CSSStyleDeclaration.overscrollBehaviorX setter behaves differently from Chrome and Firefox

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 14 07:38:46 PDT 2021


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

            Bug ID: 226972
           Summary: CSSStyleDeclaration.overscrollBehaviorX setter behaves
                    differently from Chrome and Firefox
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zyscoder at gmail.com

Steps to reproduce:

(1) Open a tab and navigate to any URL;
(2) Run the following code in the Console of Devtools:
```
obj = getComputedStyle(new Audio());
obj.overscrollBehaviorX = '';
```
Actual results:

This code would be evaluated successfully without throwing any exceptions.

Expected results:

In my test, Chrome and Firefox would throw exceptions:
Chrome: `DOMException: Failed to set the 'overscroll-behavior-x' property on 'CSSStyleDeclaration': These styles are computed, and therefore the 'overscroll-behavior-x' property is read-only.`
Firefox: `CSS2Properties.overscrollBehaviorX setter: Can't set value for property 'overscroll-behavior-x' in computed style`
It seems better for Webkit to align with Chrome and Firefox.

-- 
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/20210614/921ead5d/attachment-0001.htm>


More information about the webkit-unassigned mailing list