Andy Maloney
1bd4c59c0d
Remove extraneous namespace in test container
2024-08-19 16:41:50 +03:00
Andy Maloney
577367ecc9
Use one callback with enum to avoid extra API ( #2 )
2024-08-19 16:41:50 +03:00
Andy Maloney
1a54872a46
Add callbacks for mouse entering/leaving elements ( #1 )
...
Useful for showing URLs from anchors or for debugging.
2024-08-19 16:41:50 +03:00
stasoid
62de3475f3
test_container: add ability to use background repeat styles with gradient images
2024-05-16 22:54:49 +03:00
stasoid
869a3cd8ea
test_container, canvas_ity: implement conic-gradient
2024-05-16 22:54:49 +03:00
stasoid
70fafc0b86
test_container, canvas_ity: implement radial-gradient
...
Radial gradient supported by canvas_ity is different (two circles vs one ellipse in CSS), so I implemented new brush type, css_radial. It is created with canvas::set_css_radial_gradient().
2024-05-16 22:54:49 +03:00
stasoid
55e9fef61c
test_container: support linear-gradient (no-repeat only)
2024-05-16 22:54:49 +03:00
stasoid
44ac33f825
test_container: convert to using canvas_ity
2024-05-16 22:54:49 +03:00
stasoid
99dd1ffec7
test_container: support images
2024-05-04 23:31:55 +03:00
stasoid
0137aa400a
fix @import
2024-04-22 00:11:45 +03:00
Yuri Kobets
215172d6d7
fix test_container
2024-03-29 03:04:40 +03:00
Yuri Kobets
3fdf6f6303
fixed tests building and failed tests
2024-03-29 03:04:40 +03:00
Yuri Kobets
58a1db79b9
Background parsing fixex. Added support for linear gradient
2024-03-29 03:04:40 +03:00
Yuri Kobets
d4453f5d4e
Refactoring for zero warnings
...
Added compiler options: -Werror -Wall -Wextra -Wpedantic
2024-02-01 01:32:13 +03:00
Yuri Kobets
3b896beede
changed signature of document_container::set_clip
...
Removed arguments valid_x and valid_y because they are always true
2023-05-12 18:13:13 +03:00
stasoid
19095e184e
test_container: update for API change
2023-02-25 11:19:59 +06:00
stasoid
3ee3977bce
test_container: implement draw_list_marker (only square bullets)
2022-12-12 07:31:26 +06:00
stasoid
4f92aa42f0
test_container: implement draw_background
...
only color, no images
only 2 values of opacity are supported:
color.alpha == 0 fully transparent
color.alpha != 0 fully opaque
2022-12-12 06:31:35 +06:00
stasoid
fcd32a9b7f
test_container: implement import_css
2022-12-12 06:03:29 +06:00
stasoid
778a6e2c63
Add render tests
...
Render tests are .htm files in litehtml/test directory.
Tests starting with "-" are disabled.
Correct rendering is in corresponding .htm.png file.
To generate .png file, run ctest from litehtml/build. The test will fail
and create xxx.htm-FAILED.png file. Rename it to xxx.htm.png
One ASCII raster font with 3 sizes is supported, see litehtml/containers/test/fonts. This should be enough for tests.
Border painting is supported, only solid borders.
Backgrounds, images and list markers are not supported.
2022-12-11 04:20:48 +06:00