Auto merge of #10592 - canaltinova:stylesheet_with_base, r=Ms2ger

Use the document base url when resolving stylesheets

Use the document base url when resolving stylesheets. Fixes #10575 .

<!-- 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/10592)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-19 17:20:32 +05:30
commit a7c885706e
6 changed files with 61 additions and 12 deletions

View file

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

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Stylesheet Without Base Tag</title>
<style>
body { background-color: green; }
</style>
</head>
<body>
</body>
</html>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>Stylesheet With Base Tag</title>
<link rel="match" href="stylesheet-with-base-ref.html">
<base href="resources/">
<link rel="stylesheet" href="stylesheet.css">
</head>
<body>
</body>
</html>

View file

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