W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2016

[csswg-drafts] [cssom] Different behavior on MediaList.appendMedium

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Wed, 09 Nov 2016 07:30:08 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-188182690-1478676607-sysbot+gh@w3.org>
upsuper has just created a new issue for 

== [cssom] Different behavior on MediaList.appendMedium ==
There are some different behaviors around `MediaList.appendMedium` 
among different browsers and the spec.

In Firefox, Edge, and Safari, if you call this method with an empty 
string, an error would be raised, while Chrome doesn't which matches 
the spec.

In Firefox and Edge, if you call this method with an existing medium 
in the list, the medium would be moved to the last. Chrome doesn't 
move the medium, which matches the spec. Safari appends a redundant 
medium, which I guess is undesired anyway.

Should we change the spec and ask Chrome to follow other browsers' 
behavior? Or should we ask other browsers to change their behavior to 
match the spec?

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/697 using your GitHub 
Received on Wednesday, 9 November 2016 07:30:16 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:05 UTC