mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
LibWeb: Support loading file:// URLs via fetch (through ResourceLoader)
This builds on the existing ad-hoc ResourceLoader code for HTTP fetches which works for files as well. This also includes a test that checks that stylesheets loaded with the "file" URL scheme actually work.
This commit is contained in:
parent
652676fdc1
commit
d005b1ad1b
5 changed files with 17 additions and 5 deletions
4
Tests/LibWeb/Layout/expected/link-sheet.txt
Normal file
4
Tests/LibWeb/Layout/expected/link-sheet.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x16 children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x0 children: not-inline
|
||||
BlockContainer <div#foo> at (0,0) content-size 123x456 positioned children: not-inline
|
7
Tests/LibWeb/Layout/input/link-sheet.css
Normal file
7
Tests/LibWeb/Layout/input/link-sheet.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
#foo {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 123px;
|
||||
height: 456px;
|
||||
}
|
1
Tests/LibWeb/Layout/input/link-sheet.html
Normal file
1
Tests/LibWeb/Layout/input/link-sheet.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE html><head><link rel="stylesheet" href="link-sheet.css"></head><body><div id="foo">
|
Loading…
Add table
Add a link
Reference in a new issue