38180d37da
fix VS and gcc warnings
stasoid
2024-05-16 12:24:35 +05:00
08c647aea1
simplify things by making background_layer::color_point::offset and hint to always be between 0 and 1, even for conic gradients (so offset and hint for conic gradients are measured in turns instead of degrees now)
stasoid
2024-05-16 11:46:52 +05:00
60bd9f18f1
implement gradient color transition hints
stasoid
2024-05-16 11:23:33 +05:00
c80a2a08e9
use optional<css_length> in gradient::color_stop unitless 0 is a valid length value, stop using it as a <no length> value
stasoid
2024-05-16 07:53:54 +05:00
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().
stasoid
2024-05-14 07:30:03 +05:00
f429a3a101
disable gumbo warnings in VS add_compile_options(/wd4244 /wd4267) is deliberately placed separately from target_include_directories(${PROJECT_NAME} PRIVATE visualc/include): - if add_compile_options is placed after target_include_directories, options are not applied - if target_include_directories is placed together with add_compile_options (before add_library) then cmake fails Looks like add_compile_options should be called before add_library, and target_include_directories should be called after add_library.
stasoid
2024-05-11 12:44:32 +05:00
ca693a290e
support selector_list in :nth-child(an+b of selector_list)
stasoid
2024-04-29 19:16:30 +05:00
2fdfbdfcdc
fix matching selector :nth-child(an+b) when a < 0
stasoid
2024-04-29 18:38:10 +05:00
feb47e3c5b
{style} Prefer .empty() for readability
Andy Maloney
2024-04-26 10:42:46 -04:00
3c6d4e8c81
{style} Prefer range-based loops
Andy Maloney
2024-04-26 10:37:12 -04:00
412fdc227e
Use parens in macro
Andy Maloney
2024-04-26 10:29:33 -04:00
c25af5240b
Ensure border style is initialized
Andy Maloney
2024-04-26 10:23:04 -04:00
cf500fdd63
make id and class selectors match case-sensitively in no quirks/limited quirks mode and case-insensitively in quirks mode
stasoid
2024-04-26 18:59:25 +05:00
60f29d1b14
match :is() selector
stasoid
2024-04-26 14:11:07 +05:00
c0a5f163e0
fix: selector p, should be invalid
stasoid
2024-04-26 13:54:03 +05:00
2aa733dbc9
fix: names of pseudo-classes and pseudo-elements are case-insensitive
stasoid
2024-04-26 13:29:23 +05:00
48cd17bc49
fix VS warning C4927: illegal conversion; more than one user-defined conversion has been implicitly applied
stasoid
2024-04-25 12:25:09 +05:00
dffdeb6c40
{style} Use "= default" where possible
Andy Maloney
2024-04-24 11:26:06 -04:00
43d7d687ce
{style} Prefer brace list returns
Andy Maloney
2024-04-23 14:43:28 -04:00
ab216b2f15
fix linux build * gcc 9.4 doesn't support non-ascii identifiers (ε 🡒 epsilon, π 🡒 pi) * media_query.cpp: '<=' 🡒 u'⩽' to fix gcc warning, media_query.cpp now has UTF-8 BOM for Visual Studio, alternatively /utf-8 compiler switch can be used
stasoid
2024-04-10 08:51:24 +05:00