[Webkit-unassigned] [Bug 251196] image-set() is changing the order of rules

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 7 07:35:49 PST 2023


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

--- Comment #3 from Ryan Reno <rreno at apple.com> ---
Yes that's almost it. If I remove this sort the tests have the serialized arguments to image-set in the expected order:

https://github.com/WebKit/WebKit/blob/6055ee6392589ea77765c0a3d4d8b8898a6534ff/Source/WebCore/css/CSSImageSetValue.cpp#L82

When we're constructing the style from the CSSImageSetValue object we sort the images by resolution so we can more quickly search for an appropriate resolution later when we need to pick one of the images. When we serialize the computed style we may no longer have the arguments in the order the author wrote them.

So it's not in "engine preferred order" but in ascending resolution order.

-- 
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/20230207/85dc6af1/attachment.htm>


More information about the webkit-unassigned mailing list