Commit Graph
100 Commits
Author SHA1 Message Date
Martín Lucas Golini 785fd41bd5 Fix crash when clicked a menu sub-menu button form the code editor context menu. 2026-06-08 13:56:29 -03:00
Martín Lucas Golini 05e81c23de Communicate the reason for the layout invalidation, store and process the reasons, this is an initial setup, we will continue working on it. The new system will allow us to fine grain the invalidations to avoid re-layouting on each attribute change, this commit already does some of this but it's not fully fine-grained and needs more work. 2026-06-08 02:33:49 -03:00
Martín Lucas Golini d8fa49be37 Fix xvfb-run-eepp, update unit-tests.md. 2026-06-07 22:12:28 -03:00
Martín Lucas Golini 12413ea630 Temporary fix until we have proper layout invalidation. 2026-06-07 02:00:42 -03:00
Martín Lucas Golini 788dcc6bf4 Add "defer" to force CSS files to load asynchronously (this will help unit-test some layout issues).
Added `Browser-Like Layout Invalidation Plan`.
Minor changes in HTML example.
Added a couple of examples that I'll use for unit-tests.
2026-06-07 00:32:54 -03:00
Martín Lucas Golini b75cab5939 Fix html element sizing. 2026-06-06 19:16:35 -03:00
Martín Lucas Golini 19f2f16b8e Damn! Fix CI. 2026-06-06 17:20:22 -03:00
Martín Lucas Golini 3af9e76ae7 Fix CI. 2026-06-06 17:19:50 -03:00
Martín Lucas Golini 68904b9656 Fixed layouting performance issues in UIRichText (layout invalidation trashing issues). Everything is highly commented given that none of these changes are obvious and it's very easy to break it.
Added tests to verify possible regression. And added a simple benchmark with some metrics to inspect layouting invalidation issues.
2026-06-06 15:54:54 -03:00
Martín Lucas Golini 9bc9b099ad Implemented calc, min, max, clamp CSS functions. 2026-06-06 02:19:40 -03:00
Martín Lucas Golini d342fd88ef Fix invalid access. 2026-06-05 01:32:24 -03:00
Martín Lucas Golini 288950bf34 Image sizing fixes.
Added support for `:where` and `:is`.
2026-06-05 00:18:26 -03:00
Martín Lucas Golini 9bfa128658 Use the new tab position setting for *all* new tabs (SpartanJ/ecode#904). 2026-06-04 16:42:10 -03:00
Martín Lucas Golini bd2c8991a7 Fix incorrect calculations in grid layout when pixel density != 1. 2026-06-04 13:43:08 -03:00
Martín Lucas Golini 5d0e31e52e Allow to inspect widget style from widget inspector. 2026-06-04 02:00:39 -03:00
Martín Lucas Golini 7aaa068d61 Fix Event::OnFocusWithin and Event::OnFocusWithinLoss not being correctly emited. 2026-06-04 01:02:30 -03:00
Martín Lucas Golini 3be4de9b5e Fix hr. 2026-06-04 00:34:46 -03:00
Martín Lucas Golini 11a2ca801c Optionally display signature help documentation in signature help (enabled by default), SpartanJ/ecode#911. 2026-06-03 11:27:51 -03:00
Martín Lucas Golini 39e57c2689 Remove bad test. 2026-06-03 10:45:30 -03:00
Martín Lucas Golini dfa9d26adb Merge branch 'feature/grid-layout' into develop 2026-06-03 02:07:47 -03:00
Martín Lucas Golini b72e2c5d0b More grid fixes and fixed a couple of crashes. 2026-06-03 02:07:37 -03:00
Martín Lucas Golini f8f066c57a Fix infinite loop in flex layouter. 2026-06-02 19:42:50 -03:00
Martín Lucas Golini 2e14b4d0cb Span’s own RichText was using the parent match width while still inheriting text-align: center, so the text was rendered offset inside the correct span box. 2026-06-02 19:09:28 -03:00
Martín Lucas Golini cb1f5739dd Merge branch 'develop' into feature/grid-layout 2026-06-02 18:38:31 -03:00
Martín Lucas Golini 7795ec2fc3 Fix importing CSS within CSS.
Fix in colors with vars processing.
Added prefers-contrast support at least for parsing.
2026-06-02 18:37:41 -03:00
Martín Lucas Golini c5e6a4d1c9 Merge branch 'develop' into feature/grid-layout 2026-06-02 14:51:57 -03:00
Martín Lucas Golini b97232cecc Fix double background being rendered. 2026-06-02 14:51:34 -03:00
Martín Lucas Golini f3f0fca795 Merge branch 'develop' into feature/grid-layout 2026-06-02 14:24:25 -03:00
Martín Lucas Golini 5030e392df Color::fromString now supports modern CSS rgb/hsl/hsv function format (although not 100% complete, it supports most common cases). 2026-06-02 14:23:38 -03:00
Martín Lucas Golini ad4e4285d6 Grid fixes. 2026-06-02 12:29:37 -03:00
Martín Lucas Golini 2f8e631e88 Merge branch 'develop' into feature/grid-layout 2026-06-02 02:35:14 -03:00
Martín Lucas Golini a75292ca5a Fix z-index hit-testing. 2026-06-02 02:35:00 -03:00
Martín Lucas Golini 312ea199a3 gradient fixes 2026-06-02 02:33:49 -03:00
Martín Lucas Golini 43bf00dcea Fix bad merge. :S 2026-06-02 02:09:15 -03:00
Martín Lucas Golini ce52a791b2 Merge branch 'develop' into feature/grid-layout 2026-06-02 02:05:03 -03:00
Martín Lucas Golini 27bfd11b51 gradients refactor 2026-06-02 02:02:11 -03:00
Martín Lucas Golini 1218d8140e Merge branch 'develop' into feature/grid-layout
# Conflicts:
#	src/eepp/ui/uihtmlwidget.cpp
2026-06-02 01:59:28 -03:00
Martín Lucas Golini 9bc02d2411 Very basic z-index support (we won't support stacking-context for now, but this can fix several simple scenarios). 2026-06-02 01:51:16 -03:00
Martín Lucas Golini 30ceb2f13f Merge branch 'develop' into feature/grid-layout
# Conflicts:
#	.ecode/project_build.json
2026-06-02 00:44:10 -03:00
Martín Lucas Golini afa15f70c0 Grid layout fixes. 2026-06-02 00:43:30 -03:00
Martín Lucas Golini 1b3ce261d6 Greatly improve linear-gradient support (still not complete). Added repeating-linear-gradient, radial-gradient and repeating-radial-gradient (WIP though). 2026-06-02 00:39:20 -03:00
Martín Lucas Golini 127689d0e0 Merge branch 'develop' into feature/grid-layout 2026-06-01 21:18:09 -03:00
Martín Lucas Golini b6a3219f7d Merge remote-tracking branch 'origin/develop' into develop 2026-06-01 21:16:06 -03:00
Martín Lucas Golini 8880520d18 Greatly improve linear-gradient support. 2026-06-01 21:14:44 -03:00
Martín Lucas Golini b648a6c3f2 More WIP 2026-06-01 16:56:34 -03:00
Martín Lucas Golini 98837b9cbe Merge remote-tracking branch 'origin/develop' into feature/grid-layout 2026-06-01 16:55:25 -03:00
Martín Lucas Golini 4370a45728 CSS white-space-collapse Support in HTML compatibility layer. 2026-06-01 16:53:45 -03:00
Martín Lucas Golini 46b3fa44f0 Grid layout WIP. 2026-06-01 02:14:00 -03:00
Martín Lucas Golini f0c631fa8a Add grid layout and white space collapse support plans. 2026-05-31 13:53:20 -03:00
Martín Lucas Golini 972be7c12f Fix run_gdb_tests.sh 2026-05-31 13:51:52 -03:00
Martín Lucas Golini c2b1a91d90 Added the pending flex support tests.
Added xvfb-run-eepp with better defaults than xvfb-run, updated documentation.
2026-05-31 13:14:30 -03:00
Martín Lucas Golini 9fa16d6d70 Flex container baseline computation. 2026-05-31 02:38:19 -03:00
Martín Lucas Golini 37fcf45595 Update reference image in tests to pass unit-tests. 2026-05-31 02:30:36 -03:00
Martín Lucas Golini 8853acd901 Fix baseline alignment for inline-blocks in RichText. 2026-05-31 02:25:03 -03:00
Martín Lucas Golini 50334d4481 HTML input checkbox fixes. 2026-05-31 02:07:36 -03:00
Martín Lucas Golini d24ed80912 Flex: Column-reverse stacking context reordering. 2026-05-31 02:01:09 -03:00
Martín Lucas Golini 733b66f16b Flex painting order support. 2026-05-31 01:35:16 -03:00
Martín Lucas Golini 0c27b124b5 Merge remote-tracking branch 'origin/develop' into develop 2026-05-31 01:06:34 -03:00
Martín Lucas Golini 1081830f93 Merge branch 'feature/flex-layout' into develop 2026-05-31 01:06:14 -03:00
Martín Lucas Golini 54310057e3 More flexbox work. 2026-05-31 01:03:53 -03:00
Martín Lucas Golini 7fdcb94c30 More flexbox support wip. 2026-05-30 21:19:15 -03:00
Martín Lucas Golini 7f3d997193 Fix tests. 2026-05-30 20:45:35 -03:00
Martín Lucas Golini 9ac381e6ba visibility: collapse on flex items 2026-05-30 14:12:25 -03:00
Martín Lucas Golini abfd10bee4 Add anonymous flex item wrap support. 2026-05-30 02:52:23 -03:00
Martín Lucas Golini 8be05aabdd Initial implementation to support rendering text nodes as anonymous flex items. This does not support wrapping yet. 2026-05-30 02:37:22 -03:00
Martín Lucas Golini 4cd645a411 More flex fixes. 2026-05-30 01:55:23 -03:00
Martín Lucas Golini 81d5854dc5 Fix SpartanJ/ecode#908. 2026-05-30 01:50:04 -03:00
Martín Lucas Golini c83548ae08 Fix rendering bug. 2026-05-30 01:08:59 -03:00
Martín Lucas Golini c79cdce019 More Flex WIP. Updated plan. 2026-05-30 00:48:47 -03:00
Martín Lucas Golini 2e7a1d0eb3 Update plan, minor fix. 2026-05-29 23:31:04 -03:00
Martín Lucas Golini ddfd59e167 More flex improvements. 2026-05-29 21:20:56 -03:00
Martín Lucas Golini cc0e516edc Nits 2026-05-29 18:17:39 -03:00
Martín Lucas Golini 453eaa03fc Several flex fixes. 2026-05-29 15:48:23 -03:00
Martín Lucas Golini 5305670f46 Fixes. 2026-05-29 03:04:27 -03:00
Martín Lucas Golini 72077144a5 Merge branch 'develop' into feature/flex-layout 2026-05-29 02:18:16 -03:00
Martín Lucas Golini 20ef8854fc Flex support WIP. 2026-05-29 02:18:12 -03:00
Martín Lucas Golini 81fe0fe632 Minor change in body min-height property. 2026-05-29 02:12:48 -03:00
Martín Lucas Golini 327952aa38 More float fixes. 2026-05-28 17:53:13 -03:00
Martín Lucas Golini 8a5a7af3e0 Revert "Avoid stack-overflow when updating UIHTMLWidget::updateOutOfFlowPosition."
This reverts commit eb2b919354.
2026-05-27 21:20:56 -03:00
Martín Lucas Golini eb2b919354 Avoid stack-overflow when updating UIHTMLWidget::updateOutOfFlowPosition. 2026-05-27 19:52:03 -03:00
Martín Lucas Golini df3ac4508b Add plan to implement a more complete font-weight support. 2026-05-27 01:10:28 -03:00
Martín Lucas Golini bdf94fea21 Added font-weight support. 2026-05-27 00:53:59 -03:00
Martín Lucas Golini 55e0fb9736 float and clear fixes 2026-05-26 21:57:32 -03:00
Martín Lucas Golini 2dbbd7d56d Do not compute for layouting hidden rows in TableLayouter. 2026-05-26 20:24:02 -03:00
Martín Lucas Golini 0c98717089 Improvements for SpartanJ/ecode#906. 2026-05-26 19:49:32 -03:00
Martín Lucas Golini 28290c20ef Quick crash fix SpartanJ/eepp#181. 2026-05-26 13:56:48 -03:00
Martín Lucas Golini 85b706869e Float and text wrap fixes. 2026-05-25 02:42:55 -03:00
Martín Lucas Golini b36ef2cf85 Fix background draw in atomic boxes.
Fix in selector parser.
2026-05-25 01:49:04 -03:00
Martín Lucas Golini fa537eaaaa More WIP, several HTML fixes compatibility. 2026-05-24 15:29:00 -03:00
Martín Lucas Golini c5e39f4c6d More fixes. 2026-05-24 13:43:29 -03:00
Martín Lucas Golini aa9efcf13b Load CSS default HTML element styles from a CSS file with no specificity. This simplyfies how to setup the HTML defaults. Also set new defaults matching closer HTML spec. 2026-05-24 13:15:31 -03:00
Martín Lucas Golini bb7682dd8f CSS float improvements. 2026-05-24 02:21:53 -03:00
Martín Lucas Golini a4a39b5491 Update IME location on cursor position change in TerminalDisplay. 2026-05-23 20:37:37 -03:00
Martín Lucas Golini a7e1c03f25 Fix bug loading style elements from UIRichText. 2026-05-23 20:22:53 -03:00
Martín Lucas Golini 49971701ed float fixes. 2026-05-23 19:24:14 -03:00
Martín Lucas Golini d7807a1aa9 Ups fix Linux nightly env vars. 2026-05-23 17:49:54 -03:00
Martín Lucas Golini a90a003384 Update the Linux nightly. 2026-05-23 17:17:33 -03:00
Martín Lucas Golini 89028491ef Try fix macOS not passing tests due to incorrect Window sizing in macOS CI.
Add support to diff images in UIDiffView.
2026-05-23 14:17:48 -03:00
Martín Lucas Golini 15db9e90eb Body height miscalculation fix. 2026-05-23 00:25:27 -03:00
Martín Lucas Golini 428cd55c48 Fix bug in CSS id selectors not working properly because we were lower-casing them for no reason. 2026-05-22 01:11:39 -03:00