mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
LibHTML: Implement basic tiled background image support
It's now possible to set a page background image via <body background>. Also, HtmlView now officially handles rendering the body element's background (color, image or both.) LayoutBox is responsible for all other background rendering. Note that it's not yet possible to use CSS background-image properties directly, since we can't parse them yet. :^)
This commit is contained in:
parent
96f10c8de2
commit
5a34225999
11 changed files with 101 additions and 7 deletions
BIN
Base/home/anon/www/90s-bg.png
Normal file
BIN
Base/home/anon/www/90s-bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -6,19 +6,19 @@
|
|||
<style type="text/css">
|
||||
/* css comment */
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #000; /* another css comment */
|
||||
background-color: #000;
|
||||
color: #fff; /* another css comment */
|
||||
}
|
||||
/* lol
|
||||
a
|
||||
css
|
||||
comment */
|
||||
h1 {
|
||||
color: #800;
|
||||
color: #a00;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<body link="#44f" vlink="#c4c" background="90s-bg.png">
|
||||
<h1>Welcome to the Serenity Browser!</h1>
|
||||
<p>This is a very simple browser built on the LibHTML engine.</p>
|
||||
<p>Some small test pages:</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue