Auto merge of #10634 - amarant:10574-image-document-base, r=metajack

Issue #10574 Use the document base url in img

add a test with base path set to the resources path and an img with a cat and the reference directly to the image

<!-- 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/10634)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-19 20:51:18 +05:30
commit 3d4416e1b0
5 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,5 @@
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>Document base URL img test</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-img-element" />
<img src="resources/cat.jpg" alt="cat">

View file

@ -0,0 +1,7 @@
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>Document base URL img test</title>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-img-element" />
<link rel="match" href="document-base-url-ref.html">
<base href="resources/" />
<img src="cat.jpg" alt="cat">

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB