[Webkit-unassigned] [Bug 248442] cssText serialization in inline style for "padding"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 28 17:27:41 PST 2022


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

Oriol Brufau <obrufau at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Oriol Brufau <obrufau at igalia.com> ---
Yeah, !important was fixed in bug 247771, you can test with e.g. 'inherit':

  var {style} = document.createElement("div");
  style.cssText = "padding: inherit; padding-top: inherit !important";
  style.cssText; // "padding-right: inherit; padding-bottom: inherit; padding-left: inherit; padding-top: inherit !important;"

The problem with 'initial' is bug 185953, caused by this piece of code: https://github.com/WebKit/WebKit/blob/b9824fc290ac9247e8a04f38632a8fdd4b9ec02d/Source/WebCore/css/StyleProperties.cpp#L1759-L1760

It was a workaround for some other problem that I don't remember, probably that the serialization of several shorthands does not properly handle CSS-wide keywords (https://github.com/WebKit/WebKit/blob/b9824fc290ac9247e8a04f38632a8fdd4b9ec02d/LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssom-getPropertyValue-common-checks-expected.txt) or that during parsing a shorthand can set omitted longhands to literally 'initial' instead of  the actual initial value.

*** This bug has been marked as a duplicate of bug 185953 ***

-- 
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/20221129/1be414b7/attachment.htm>


More information about the webkit-unassigned mailing list