Commit Graph

951 Commits

Author SHA1 Message Date
Yuri Kobets
23a8523cdf Scale borders radius to prevent corner overlap
Ref: https://www.w3.org/TR/css-backgrounds-3/#corner-overlap
Also changes in cairo_linux container to support corners with different
radius.
2023-12-29 00:27:30 +03:00
Yuri Kobets
ef0a2cdd1d
Merge pull request #281 from MicCalo/css_counters_basic
basic implementation for css counters
2023-12-28 22:02:04 +03:00
MichelCalonder
c6954248d6 reverted whitespace-only changes 2023-12-28 19:40:26 +01:00
MichelCalonder
683a0ab108 Added tests for css counters 2023-12-28 19:27:42 +01:00
Yuri Kobets
76ffcfa841 flex: more flex tests passed 2023-12-28 02:54:09 +03:00
MichelCalonder
05ae1051ee used string_id instead of string 2023-12-26 07:15:55 +01:00
MichelCalonder
b9368a4bc1 support for counter_s_ 2023-12-25 11:18:00 +01:00
Yuri Kobets
33407c6cc9 flex test: some tests were fixed 2023-12-25 03:35:44 +03:00
Yuri Kobets
e1bbe63d8a fixed rendering block with negative top/bottom margins 2023-12-25 03:12:05 +03:00
Yuri Kobets
85da5869cb Added tests for Flexible Box Layout
All tests are copied from:
http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/toc.htm

Prefixes:
"-" - test is using features that litehtml doesn't support yet
"--" - all featured should be supported but test failed because of flex
       rendering implementation issues
2023-12-25 01:16:42 +03:00
Yuri Kobets
6922a8497d flex: fixed rendering issues 2023-12-25 01:15:43 +03:00
Yuri Kobets
ce7d5a16fc flex: added support for align-content property 2023-12-23 17:31:09 +03:00
Yuri Kobets
bf940939d8 flex: added order property support 2023-12-23 03:49:38 +03:00
Yuri Kobets
5eaf3afbd3 flex: added support for the justify-content property 2023-12-23 02:32:23 +03:00
Yuri Kobets
4b633c6487 container_linux: don't draw background image with zero size 2023-12-22 02:34:09 +03:00
Yuri Kobets
86f2634ddf added support for flex-wrap: wrap-reverse 2023-12-22 01:57:14 +03:00
Yuri Kobets
d764b9fa64 added support row-reverse and column-reverse for flex-direction 2023-12-22 01:23:38 +03:00
Yuri Kobets
709855c1dc fix test container base path 2023-12-21 23:53:36 +03:00
MichelCalonder
ff6aa5fcc5 included siblings in search so exapmple 2 (H1/H2, not nested) works too 2023-12-21 18:42:48 +01:00
Yuri Kobets
90b3dff03c added support for start, end values for align_items css property 2023-12-21 02:24:11 +03:00
Yuri Kobets
95434551e9 tests: support for subfolders in rendering test 2023-12-20 13:50:06 +03:00
MichelCalonder
08bf1aa685 moved m_counter_values and corresponding functions to element.h 2023-12-20 06:51:15 +01:00
Yuri Kobets
efe03ce827 Some fixes
* fixed possible stuck in flex rendering
* fixed crash in font css parsing
* some fixes in render_item::get_element_by_point
2023-12-20 01:16:57 +03:00
Charlie Wolf
a81c9272a3 add litehtml specific testing options in cmake 2023-12-19 22:26:00 +03:00
Yuri Kobets
3331260d60 flex layout: distribute free cross size to lines 2023-12-19 01:31:47 +03:00
Yuri Kobets
33b8699a3c flex layout: support for flex-direction: column 2023-12-17 16:46:49 +03:00
MichelCalonder
391e71a6ef started support int values for counter-reset and counter-increment 2023-12-13 07:44:32 +01:00
MichelCalonder
28f72f8a32 moved isnumber to html helper functions for later reuse 2023-12-13 07:41:16 +01:00
MichelCalonder
c6faa2e6c7 fixed issue after merge (due to beautifying, type change from elements-vector to elements-list was not auto-merged) 2023-12-08 19:33:26 +01:00
Yuri Kobets
d1eedd33a4
Merge branch 'master' into css_counters_basic 2023-12-08 18:27:32 +03:00
MichelCalonder
871d08390a basic implementaion for css counters 2023-12-08 15:36:50 +01:00
Yuri Kobets
7117be9018 flex layout: small refactoring 2023-11-07 01:41:05 +03:00
Yuri Kobets
dbe19ccb61 flex layout: remake disrtibute free space algorithm
REF: https://www.w3.org/TR/css-flexbox-1/#resolve-flexible-lengths
2023-11-06 23:31:59 +03:00
Yuri Kobets
c5335d559f flex layout: support for flex-direction: row 2023-11-06 04:15:46 +03:00
Yuri Kobets
6d065eaef5 flex layout - the first implementation 2023-11-05 17:04:28 +03:00
Yuri Kobets
32e294ff34 fix: casting void* to enum directly causes warning
Closes issue #273
2023-10-22 23:07:11 +03:00
Yuri Kobets
42632777fb Fix compile bugs on Windows 2023-10-18 03:56:58 +03:00
Yuri Kobets
334eb32c49 Endless cycle in litehtml::css::parse_stylesheet
Closes issue #276
2023-10-10 23:24:45 +03:00
Yuri Kobets
719df59088 Integer underflow in litehtml::media_query::create_from_string
Closes issue #275
2023-09-19 00:42:51 +03:00
Yuri Kobets
7b10cd5633
Merge pull request #274 from stasoid/master
discard invalid color declarations
2023-09-12 01:53:17 +03:00
stasoid
95dc02f6ee test for commit 330e1241 2023-09-12 04:09:43 +06:00
stasoid
01f186a172 fix win32_container after commit 3b896be 2023-09-11 22:40:00 +06:00
stasoid
330e124166 discard invalid color declarations 2023-09-11 22:36:59 +06:00
Yuri Kobets
92047d674e Unnecessary removal of element in apply_stylesheet
Fixes crash on https://www.lostfilm.today/news/id11063
2023-09-05 18:09:02 +03:00
Yuri Kobets
1fb57d73a2
Create FUNDING.yml 2023-08-01 19:34:47 +03:00
Yuri Kobets
d4409bc232 Added support for caption-side CSS property 2023-08-01 17:49:24 +03:00
Yuri Kobets
afe9102941 added single quotes support for atributes values in CSS selector 2023-08-01 16:24:50 +03:00
Yuri Kobets
96769e7a29 Added tags figure and fugcaption into master css 2023-08-01 16:22:52 +03:00
Yuri Kobets
2d5e9b614a
Merge pull request #269 from litehtml/refactor_render_item
refactor render_item based classes
2023-06-13 00:43:31 +03:00
Yuri Kobets
92ce50b7fb refactor render_item based classes
All render_item based classes are moved into the own headers
2023-06-13 00:36:18 +03:00