diff options
author | Jonathan Chan <jyc@eqv.io> | 2017-07-15 01:12:28 -0700 |
---|---|---|
committer | Jonathan Chan <jyc@eqv.io> | 2017-07-17 10:52:17 -0700 |
commit | 1301bcdf108e8de76b8db670fcbbf330a128212e (patch) | |
tree | 6e058e19758e4af5dfc3dfa787a8f974b626b24e /components/script/dom | |
parent | 989b70762300334ed87113107eea34bd2611ca20 (diff) | |
download | servo-1301bcdf108e8de76b8db670fcbbf330a128212e.tar.gz servo-1301bcdf108e8de76b8db670fcbbf330a128212e.zip |
Omit serializing the universal selector when possible.
If omitting the universal selector in the serialization is possible, we
should do it so we obtain a shorter serialization (to match the behavior
asserted in cssom/serialize-namespaced-type-selectors.html).
For example, if someone writes *|*::before and there is no default
namespace, we should serialize to ::before; however, if there is a
default namespace, we should serialize to *|*::before.
(This is the test case "Universal selector in any namespace followed by
pseudo element).
This matches the behavior implemented by WebKit; that one case in
particular isn't implemented by Gecko, but other cases where the
universal selector should be elided are implemented by Gecko but were not
previously by Servo.
Diffstat (limited to 'components/script/dom')
0 files changed, 0 insertions, 0 deletions