Commit Graph

7 Commits

Author SHA1 Message Date
Yuri Kobets
2a89d5ed4b web_page: fix urls without scheme 2025-04-06 02:54:14 +03:00
Ollie
770d55ca37 feat: support text-emphasis 2025-04-02 23:11:03 +03:00
Yuri Kobets
78f08f3080 Tests update
1. Using container_cairo_pango for running tests.
2. Added Dockerfile to create docker container for building litehtml
   tests
3. Added script run_render_tests.sh to build litehtml tests in the
   docker container
4. Added render2png target (cmake -DLITEHTML_BUILD_RENDER2PNG). This
   utility allow to render html file into a png file.
5. Tests building are off by default.
   Use "cmake -DLITEHTML_BUILD_TESTING=ON" command to buid tests
6. Added container_cairo_pango::get_font_options. Overwrite this method
   to control fonts rendering.
2024-09-10 02:20:02 +03: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
Martin Miralles-Cordal
fa610010b3 Moved src headers into discrete folders and updated include paths. 2019-09-22 16:59:03 -04:00
Sky Morey
cd15b54730 Added testing 2019-08-17 20:26:08 -05:00
Yuri Kobets
4c6aa944a2 html_tag::render returns incorrect width for elements with floats. 2014-08-30 22:48:14 +04:00