mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
commit
a7c885706e
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