mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibHTML: Draw each CSS border edge separately with their own style
The borders still look very wrong with any border-width other than 1, but at least we can see that they have the right color, and end up in mostly the right place :^)
This commit is contained in:
parent
3c8a1ea386
commit
05b1ecf1b1
4 changed files with 114 additions and 44 deletions
27
Base/home/anon/www/borders.html
Normal file
27
Base/home/anon/www/borders.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS borders lookin' good</title>
|
||||
<style>
|
||||
#foo {
|
||||
border-top-color: red;
|
||||
border-right-color: lime;
|
||||
border-bottom-color: blue;
|
||||
border-left-color: yellow;
|
||||
|
||||
border-top-width: 40px;
|
||||
border-right-width: 30px;
|
||||
border-bottom-width: 20px;
|
||||
border-left-width: 10px;
|
||||
|
||||
border-top-style: solid;
|
||||
border-right-style: solid;
|
||||
border-bottom-style: solid;
|
||||
border-left-style: solid;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="foo">One day at a time!</div>
|
||||
</body>
|
||||
</html>
|
|
@ -24,6 +24,7 @@ h1 {
|
|||
<p>Some small test pages:</p>
|
||||
<ul>
|
||||
<li><a href="small.html">small</a></li>
|
||||
<li><a href="borders.html">borders</a></li>
|
||||
<li><a href="css.html">css</a></li>
|
||||
<li><a href="attrselectors.html">attribute selectors</a></li>
|
||||
<li><a href="lorem.html">lorem ipsum</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue