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

upsuper has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [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 
account

Received on Wednesday, 9 November 2016 07:30:16 UTC