Fixing inconsistency between spec and Media Query CSSOM
methods appendMedium and deleteMedium.

Check the test for details, as it explain the relation
between the spec and the expected result.

Spec: http://dev.w3.org/csswg/cssom/#the-medialist-interface

The changes are mostly to corner cases, but it makes our
implementation more in line with Gecko and Presto, though
both has a few obvious inconsistencies with the spec.

R=apavlov@chromium.org, eseidel@chromium.org

Review URL: https://codereview.chromium.org/15094019

git-svn-id: svn://svn.chromium.org/blink/trunk@151484 bbb929c8-8fbe-4397-9dbb-9b2b20218538
11 files changed