mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
Tests/LibWeb: Restructure Ref and Screenshot test dirs to match others
Now each test type has the same directories: - input - expected - data Also, tests can be in subdirectories within ./input.
This commit is contained in:
parent
08253d6aee
commit
b7efb61fbe
Notes:
github-actions[bot]
2024-11-05 16:45:19 +00:00
Author: https://github.com/AtkinsSJ
Commit: b7efb61fbe
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2175
Reviewed-by: https://github.com/gmta ✅
360 changed files with 451 additions and 448 deletions
36
Tests/LibWeb/Screenshot/input/css-transform-box.html
Normal file
36
Tests/LibWeb/Screenshot/input/css-transform-box.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!doctype html>
|
||||
<link rel="match" href="../expected/css-transform-box-ref.html" />
|
||||
<style>
|
||||
svg {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
border: 1px solid #d9d9d9;
|
||||
}
|
||||
|
||||
.box {
|
||||
stroke-width: 4;
|
||||
transform-origin: 20% 20%;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
div.box {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: solid black;
|
||||
border-width: 10px 20px 30px 40px;
|
||||
margin: 80px;
|
||||
}
|
||||
</style>
|
||||
<div class="box" style="transform-box: content-box">Hi</div>
|
||||
<div class="box" style="transform-box: border-box">Hi</div>
|
||||
<svg id="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
||||
<!-- NOTE: We don't currently calculate the fill or stroke boxes for SVG elements, so the test will need to be
|
||||
rebaselined once we do! -->
|
||||
<rect class="box" style="transform-box: fill-box" x="10" y="10" width="10" height="10" stroke="black" fill="yellow" />
|
||||
<circle fill="red" r="1" cx="15" cy="15" />
|
||||
|
||||
<rect class="box" style="transform-box: stroke-box" x="10" y="40" width="10" height="10" stroke="black" fill="cyan" />
|
||||
<circle fill="red" r="1" cx="15" cy="45" />
|
||||
|
||||
<rect class="box" style="transform-box: view-box" x="10" y="70" width="10" height="10" stroke="black" fill="green" />
|
||||
<circle fill="red" r="1" cx="15" cy="75" />
|
||||
</svg>
|
Loading…
Add table
Add a link
Reference in a new issue