mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
`invert` is not yet supported. Objects that get layers will not yet display outlines properly. This is because our overflow calculation doesn't take styles into account and because layers are always anchored to the top left of the border box. Since fixing this is work that is not related to outline *per se* I'm leaving that to a followup and making a note in the code.
27 lines
344 B
HTML
27 lines
344 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
}
|
|
section {
|
|
position: relative;
|
|
width: 96px;
|
|
height: 96px;
|
|
border: solid blue 2px;
|
|
}
|
|
nav {
|
|
position: absolute;
|
|
width: 92px;
|
|
height: 92px;
|
|
border: solid red 2px;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
</style>
|
|
<body>
|
|
<section><nav></nav></section>
|
|
</body>
|
|
</html>
|
|
|
|
|