add test for alternate stylesheets

pull/250/head
Sunshine 3 years ago
parent 11207d49d2
commit 325688acf5
No known key found for this signature in database
GPG Key ID: B80CA68703CD8AB1

@ -87,6 +87,7 @@ mod passing {
#[test]
fn no_css() {
let html = "<link rel=\"stylesheet\" href=\"main.css\">\
<link rel=\"alternate stylesheet\" href=\"main.css\">\
<style>html{background-color: #000;}</style>\
<div style=\"display: none;\"></div>";
let dom = html::html_to_dom(&html);
@ -109,6 +110,7 @@ mod passing {
"<html>\
<head>\
<link rel=\"stylesheet\">\
<link rel=\"alternate stylesheet\">\
<style></style>\
</head>\
<body>\

Loading…
Cancel
Save