Auto merge of #10252 - emilio:selection, r=mbrubeck

Implement ::selection pseudo-element

It only supports `color` and `background`, for now, but it shouldn't be hard to add more properties (like text-shadow).

r? @mbrubeck

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10252)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-03-31 00:47:07 +05:30
commit 723989b9dd
12 changed files with 70 additions and 23 deletions

View file

@ -7,7 +7,7 @@ use std::mem::size_of;
#[test]
fn test_size_of_fragment() {
let expected = 160;
let expected = 168;
let actual = size_of::<Fragment>();
if actual < expected {

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![cfg_attr(test, feature(plugin, custom_derive, heap_api))]
#![cfg_attr(test, feature(plugin, custom_derive))]
#![cfg_attr(test, plugin(plugins))]
#![feature(alloc)]