Auto merge of #14911 - charlesvdv:alternate-stylesheet, r=cbrewster

Handle properly alternate stylesheet

<!-- Please describe your changes on the following line: -->
Alternate stylesheet are now fetched and then desactivated instead of ignoring them.

I don't know if tests are required to check if the stylesheet is correctly loaded and disabled ?
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14881 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14911)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-01-11 10:34:04 -08:00 committed by GitHub
commit cfc74e2060
5 changed files with 23 additions and 16 deletions

View file

@ -0,0 +1,3 @@
body {
background-color: black;
}

View file

@ -1,3 +1,5 @@
@import url("alternate-import.css");
div {
background-color: red;
}