[Webkit-unassigned] [Bug 239670] New: [cssom] Some longhands indexed in computed style are not serialized

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 22 12:51:29 PDT 2022


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

            Bug ID: 239670
           Summary: [cssom] Some longhands indexed in computed style are
                    not serialized
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: obrufau at igalia.com

A computed style only indexes declarations for longhand properties:

    var cs = getComputedStyle(document.body);
    var longhands = new Set(cs);
    longhands.has("perspective-origin-x"); // true
    longhands.has("perspective-origin-y"); // true
    longhands.has("perspective-origin"); // false

However, then it fails to serialize some longhands:

    cs.getPropertyValue("perspective-origin-x"); // ""
    cs.getPropertyValue("perspective-origin-y"); // ""
    cs.getPropertyValue("perspective-origin"); // "960px 123.9375px"

If only the shorthand can be serialized, either index the shorthand instead of the longhands (perspective-origin-x/y are actually not standard, it may be OK to pretend they don't exist), or let the longhands serialize properly.

-- 
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/20220422/2b48a00f/attachment.htm>


More information about the webkit-unassigned mailing list