WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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-
Details
Formatted Diff
Diff
Patch
(4.62 KB, patch)
2020-10-25 10:17 PDT
,
Emilio Cobos Álvarez (:emilio)
no flags
Details
Formatted Diff
Diff
Patch
(4.91 KB, patch)
2020-10-25 16:45 PDT
,
Emilio Cobos Álvarez (:emilio)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Emilio Cobos Álvarez (:emilio)
Comment 1
2020-10-16 05:50:59 PDT
There's a sorting step below.
Emilio Cobos Álvarez (:emilio)
Comment 2
2020-10-25 06:08:59 PDT
https://github.com/w3c/csswg-drafts/issues/5627
/
https://chromium-review.googlesource.com/c/chromium/src/+/2478992
Radar WebKit Bug Importer
Comment 3
2020-10-25 06:09:13 PDT
<
rdar://problem/70658754
>
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
Created
attachment 412271
[details]
Patch
Emilio Cobos Álvarez (:emilio)
Comment 6
2020-10-25 16:45:31 PDT
Created
attachment 412282
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug