1#![allow(deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/issues"#]
2// Copyright © SixtyFPS GmbH <info@slint.dev>
3// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
4
5Inner := Rectangle {
6 property <percent> val;
7 background: val < 50% ? red : blue;
8}
9
10// It seems the indirection is required
11Outer := VerticalLayout {
12 property <percent> val;
13 Inner { val: parent.val; } // Commenting this line does not produce a compiler error
14
15 Rectangle { background: val < 50% ? green : yellow; }
16
17}
18
19export AppWindow := Window {
20 width: 240px;
21 height: 240px;
22 Outer { val: 50%; }
23}
24}
25