RESOLVED FIXED 217751
MediaQueryList serialization order is inconsistent.
https://bugs.webkit.org/show_bug.cgi?id=217751
Summary MediaQueryList serialization order is inconsistent.
Emilio Cobos Álvarez (:emilio)
Reported 2020-10-15 05:05:16 PDT
See also https://bugs.chromium.org/p/chromium/issues/detail?id=1138859 If you run: window.matchMedia('(max-width: 100px) and (max-aspect-ratio: 1/1)').media You get back: (max-aspect-ratio: 1/1) and (max-width: 100px) Instead of the expected original order. Per https://drafts.csswg.org/cssom-view/#mediaquerylist-media -> https://drafts.csswg.org/cssom/#serialize-a-media-query-list: > Serialize each media query in the list of media queries, in the same order as they appear in the media query list, and then serialize the list. Seems like Gecko is correct and the order shouldn't change.
Attachments
Patch for EWS (1.10 KB, patch)
2020-10-25 06:45 PDT, Emilio Cobos Álvarez (:emilio)
ews-feeder: commit-queue-
Patch (4.62 KB, patch)
2020-10-25 10:17 PDT, Emilio Cobos Álvarez (:emilio)
no flags
Patch (4.91 KB, patch)
2020-10-25 16:45 PDT, Emilio Cobos Álvarez (:emilio)
no flags
Emilio Cobos Álvarez (:emilio)
Comment 1 2020-10-16 05:50:59 PDT
There's a sorting step below.
Radar WebKit Bug Importer
Comment 3 2020-10-25 06:09:13 PDT
Emilio Cobos Álvarez (:emilio)
Comment 4 2020-10-25 06:45:17 PDT
Created attachment 412263 [details] Patch for EWS
Emilio Cobos Álvarez (:emilio)
Comment 5 2020-10-25 10:17:06 PDT
Emilio Cobos Álvarez (:emilio)
Comment 6 2020-10-25 16:45:31 PDT
EWS
Comment 7 2020-10-26 04:00:40 PDT
Committed r268966: <https://trac.webkit.org/changeset/268966> All reviewed patches have been landed. Closing bug and clearing flags on attachment 412282 [details].
Note You need to log in before you can comment on or make changes to this bug.