[Webkit-unassigned] [Bug 247741] cssText can serialize duplicated declarations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 11 10:29:35 PST 2022


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

Oriol Brufau <obrufau at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |247734

--- Comment #1 from Oriol Brufau <obrufau at igalia.com> ---
First 2 cases addressed by bug 247734.

Now it's:

    document.body.style.cssText = "background-position: var(--b)";
    document.body.style.backgroundPositionX = "0px";
    document.body.style.cssText;

Expected: "background-position-x: 0px; background-position-y: ;"
Actual: "background-position-y: ; background-position-x: 0px;"
So just a non-canonical order.

And I think the 4th case was missing a 1st line, but oh well:

    document.body.style.cssText = "-webkit-mask: none 0px 0px";
    document.body.style.cssText;

Expected: "-webkit-mask: none 0px 0px;"
Actual: "mask-image: none; -webkit-mask-position-x: 0px; -webkit-mask-position-y: 0px; -webkit-mask: none 0px 0px;"


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=247734
[Bug 247734] cssText serializes shorthand with var() even if some longhand is different
-- 
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/20221111/ce8543e0/attachment.htm>


More information about the webkit-unassigned mailing list