Add a reftest for transform-origin

This commit is contained in:
Matthias Clasen 2021-01-24 23:47:10 -05:00
parent 344f9fcf05
commit 749f1a7c00
3 changed files with 49 additions and 0 deletions

View 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%);
}

View 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>

View 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>