mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
e0fe77d012
Each ref test now links to its reference page with a link tag, in the same format as WPT: `<link rel="match" href="reference-page.html" />` The reference pages have all been moved into a separate `reference/` dir so that we can just treat every file in `ref/` as a test. There's no filter to only look at .html files, because we also have a .svg file in there, and there may be other formats we want to use too. But it's not too hard to add one if we need it.
24 lines
568 B
HTML
24 lines
568 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="reference/clip-abspos-children-ref.html" />
|
|
<style type="text/css">
|
|
* {
|
|
background-color: white;
|
|
}
|
|
body {
|
|
border: 1px solid black;
|
|
outline: 1px solid black;
|
|
}
|
|
.outer {
|
|
position: absolute;
|
|
clip: rect(0px, auto, auto, 0px);
|
|
}
|
|
.inner {
|
|
position: absolute;
|
|
}
|
|
svg {
|
|
width: 100px;
|
|
height: 100px;
|
|
fill: red;
|
|
}
|
|
</style><div class="outer"><div class="inner"><svg viewBox="0 0 1 1"><rect x=0 y=0 width=1 height=1></rect><svg>
|