[Webkit-unassigned] [Bug 185953] cssText serialization doesn't contain properties with "initial" values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 7 08:30:08 PST 2022


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

Oriol Brufau <obrufau at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |190496
         Depends on|190496                      |242775, 248383

--- Comment #5 from Oriol Brufau <obrufau at igalia.com> ---
Testcase in comment 0 works well now.
Bug 242775 made it so that only implicit 'initial' values would be skipped.
For example, this is still wrong:

    var {style} = document.createElement("div");
    style.container = "foo";
    style.removeProperty("container-name");
    style.cssText;

Ideally this should be "container-type: normal;", but given that style.containerType is "initial" in WebKit, then it should be "container-type: initial;". However, it's just empty string.

This remaining problem should be fixed by removing implicit flags (bug 248383).


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=190496
[Bug 190496] Simplify cssText according to CSSOM
https://bugs.webkit.org/show_bug.cgi?id=242775
[Bug 242775] shorthand serialization for background and mask should not include "initial" in the middle of the value
https://bugs.webkit.org/show_bug.cgi?id=248383
[Bug 248383] [meta] Get rid of CSS property implicit flag
-- 
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/20221207/0705a772/attachment.htm>


More information about the webkit-unassigned mailing list