mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use the document base url when resolving stylesheets
This commit is contained in:
parent
86778a0d71
commit
ffd7960ad8
6 changed files with 61 additions and 12 deletions
|
@ -0,0 +1,3 @@
|
|||
body {
|
||||
background-color: green;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Stylesheet Without Base Tag</title>
|
||||
<style>
|
||||
body { background-color: green; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -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>
|
|
@ -0,0 +1,3 @@
|
|||
body {
|
||||
background-color: red;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue