mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
73fa58da34
This allows you to push the outline a certain distance away from the border (or inside it, if the offset is negative).
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Outlines</title>
|
|
<style>
|
|
p {
|
|
padding: 5px;
|
|
border: 2px solid black;
|
|
margin: 1em;
|
|
}
|
|
.outline-default {
|
|
outline: auto;
|
|
}
|
|
.outline-1 {
|
|
outline: 5px dashed magenta;
|
|
}
|
|
.outline-2 {
|
|
outline: 5px solid green;
|
|
border-radius: 10px;
|
|
}
|
|
.outline-currentcolor {
|
|
color: saddlebrown;
|
|
outline: 5px dotted currentcolor;
|
|
}
|
|
.outline-offset {
|
|
outline: 5px solid blue;
|
|
outline-offset: 0.5em;
|
|
}
|
|
.outline-inset {
|
|
outline: 1px solid red;
|
|
outline-offset: -10em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Outlines</h1>
|
|
<p class="outline-default">I have the default outline!</p>
|
|
<p class="outline-1">I have an outline!</p>
|
|
<p class="outline-2">I have an outline and a radius!</p>
|
|
<p class="outline-currentcolor">My outline is dotted and brown!</p>
|
|
<p class="outline-offset">My outline is blue and away from my border!</p>
|
|
<p class="outline-inset">My outline is a very thin red line in the middle of this box!</p>
|
|
</body>
|
|
</html>
|