Use the document base url when resolving stylesheets

This commit is contained in:
Nazım Can Altınova 2016-04-17 00:48:29 +03:00
parent 86778a0d71
commit ffd7960ad8
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;
}