From 197c2f8d75c8436f29f3cdfd62a6bcd9cb88ff15 Mon Sep 17 00:00:00 2001 From: VAN BOSSUYT Nicolas Date: Tue, 1 Oct 2024 10:06:21 +0200 Subject: [PATCH] vaev-layout: Improved z-index ordering. --- meta/plugins/reftest.py | 24 +++++----- src/vaev-base/insets.h | 1 + src/vaev-base/z-index.h | 4 ++ src/vaev-layout/frag.cpp | 4 +- src/vaev-layout/paint.cpp | 82 +++++++++++++++++++++++++++++----- src/vaev-layout/positioned.cpp | 4 +- 6 files changed, 91 insertions(+), 28 deletions(-) diff --git a/meta/plugins/reftest.py b/meta/plugins/reftest.py index 551c1b9d..3545c95c 100644 --- a/meta/plugins/reftest.py +++ b/meta/plugins/reftest.py @@ -152,12 +152,12 @@ def getInfo(txt): print(f"{vt100.YELLOW}Skip test{vt100.RESET}") continue - input_path = TEST_REPORT / f"{temp_file_name}-{num}.xhtml" + input_path = TEST_REPORT / f"{counter}.xhtml" update_temp_file(input_path, container, rendering) # generate temporary bmp - img_path = TEST_REPORT / f"{temp_file_name}-{num}.bmp" + img_path = TEST_REPORT / f"{counter}.bmp" if props.get("size") == "full": paperMuncher.popen("render", "-sdlpo", img_path, input_path) @@ -177,7 +177,7 @@ def getInfo(txt): paperMuncher.popen( "print", "-sdlpo", - TEST_REPORT / f"{temp_file_name}-{num}.pdf", + TEST_REPORT / f"{counter}.pdf", input_path, ) @@ -206,12 +206,12 @@ def getInfo(txt): if ok: passed += 1 # img_path.unlink() - print(f"{help}: {vt100.GREEN}Passed{vt100.RESET}") + print(f"{counter}: {help}: {vt100.GREEN}Passed{vt100.RESET}") else: failed += 1 print() - print(f"{help}: {vt100.RED}Failed{vt100.RESET}") + print(f"{counter}: {help}: {vt100.RED}Failed{vt100.RESET}") # generate temporary file for debugging print(f"file://{input_path}") @@ -220,7 +220,7 @@ def getInfo(txt): report += f"""
-

{tag} - {props.get('name')}

+

{counter} - {tag} - {props.get('name')}

{help}

@@ -229,7 +229,7 @@ def getInfo(txt):
- +
Actual
@@ -238,7 +238,7 @@ def getInfo(txt):
Rendition
- PDF + PDF Expected Source @@ -255,6 +255,8 @@ def getInfo(txt):