forked from AuroraMiddleware/gtk
Add a reftest for transform-origin
This commit is contained in:
parent
344f9fcf05
commit
749f1a7c00
15
testsuite/reftests/transform-origin.css
Normal file
15
testsuite/reftests/transform-origin.css
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
@import "reset-to-defaults.css";
|
||||||
|
|
||||||
|
window {
|
||||||
|
background: yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
#box {
|
||||||
|
transform-origin: top left;
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
background: linear-gradient(to bottom, red 0%, blue 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#reference {
|
||||||
|
background: linear-gradient(to right, red 0%, blue 100%);
|
||||||
|
}
|
17
testsuite/reftests/transform-origin.ref.ui
Normal file
17
testsuite/reftests/transform-origin.ref.ui
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<object class="GtkWindow" id="window1">
|
||||||
|
<property name="decorated">0</property>
|
||||||
|
<property name="width-request">300</property>
|
||||||
|
<property name="height-request">300</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="name">reference</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">start</property>
|
||||||
|
<property name="width-request">100</property>
|
||||||
|
<property name="height-request">100</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
17
testsuite/reftests/transform-origin.ui
Normal file
17
testsuite/reftests/transform-origin.ui
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<object class="GtkWindow" id="window1">
|
||||||
|
<property name="decorated">0</property>
|
||||||
|
<property name="width-request">300</property>
|
||||||
|
<property name="height-request">300</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="name">box</property>
|
||||||
|
<property name="halign">center</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="width-request">100</property>
|
||||||
|
<property name="height-request">100</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Loading…
Reference in New Issue
Block a user