aboutsummaryrefslogtreecommitdiffstats
path: root/src/render_flex.cpp
Commit message (Collapse)AuthorAgeFilesLines
* flexbox: some tests are resolvedYuri Kobets2024-01-311-207/+0
|
* flex: refactoring flexbox rederingYuri Kobets2024-01-251-777/+172
|
* flex: support for auto-margins in the cross directionYuri Kobets2024-01-111-102/+179
|
* flex: added support for align-items: baselineYuri Kobets2024-01-091-12/+110
|
* flex: apply max-height to the flex containerYuri Kobets2024-01-071-0/+5
|
* flex: Added support for flex-grow/flex-shring with values less then 1Yuri Kobets2024-01-071-3/+26
|
* flex: added validation for flex-grow and flex-shrink (must be positive number)Yuri Kobets2024-01-071-0/+9
|
* flex: support for items max-width/max-height and auto-marginsYuri Kobets2024-01-061-13/+100
|
* flex: fix auto-shrink testsYuri Kobets2024-01-041-12/+45
|
* flex: Distribute remaining after algorithm spaceYuri Kobets2023-12-291-0/+16
|
* flex: fixes in rendering of the justify-content css propertyYuri Kobets2023-12-291-6/+45
|
* flex: more flex tests passedYuri Kobets2023-12-281-10/+34
|
* flex: fixed rendering issuesYuri Kobets2023-12-251-33/+49
|
* flex: added support for align-content propertyYuri Kobets2023-12-231-18/+136
|
* flex: added order property supportYuri Kobets2023-12-231-10/+30
|
* flex: added support for the justify-content propertyYuri Kobets2023-12-231-2/+119
|
* added support for flex-wrap: wrap-reverseYuri Kobets2023-12-221-3/+31
|
* added support row-reverse and column-reverse for flex-directionYuri Kobets2023-12-221-1/+46
|
* added support for start, end values for align_items css propertyYuri Kobets2023-12-211-3/+25
|
* Some fixesYuri Kobets2023-12-201-5/+15
| | | | | | * fixed possible stuck in flex rendering * fixed crash in font css parsing * some fixes in render_item::get_element_by_point
* flex layout: distribute free cross size to linesYuri Kobets2023-12-191-16/+59
|
* flex layout: support for flex-direction: columnYuri Kobets2023-12-171-240/+300
|
* flex layout: small refactoringYuri Kobets2023-11-071-65/+63
|
* flex layout: remake disrtibute free space algorithmYuri Kobets2023-11-061-39/+98
| | | | REF: https://www.w3.org/TR/css-flexbox-1/#resolve-flexible-lengths
* flex layout: support for flex-direction: rowYuri Kobets2023-11-061-48/+76
|
* flex layout - the first implementationYuri Kobets2023-11-051-3/+205
|
* refactor render_item based classesYuri Kobets2023-06-131-1/+1
| | | | All render_item based classes are moved into the own headers
* Optimizing floating boxes renderingYuri Kobets2023-06-061-2/+1
| | | | | | | | | * is_floats_holder function is renamed to is_block_formatting_context * All floating boxes related functions are moved to new class formatting_context * The class formatting_context was passed as argument to the render function * render function is now is wrapper for _render. The render function creates formatting_context when required
* Rendering refactoringYuri Kobets2023-05-091-2/+2
| | | | | | | | | * max_width argument removed from _render function * added render_width into containing_block_context structure. This member should be used to render element instead of max_width * _render protected function is replaced with render function * apply auto-margins from parent element. Auto margins must not be applied inside render function
* Fixed: (min/max) width/height calculating with percent units.Yuri Kobets2023-03-291-1/+2
|
* create html_tag constructor for anonymous wrapper boxesstasoid2022-12-051-12/+2
| | | | changed css_properties::compute signature because shared_from_this cannot be called during construction of *this
* document::createFromString optimization:stasoid2022-11-271-2/+2
| | | | | | Move css property parsing from css_properties::parse (which is called from html_tag::parse_styles for every tree node) to style::add_property (which is called during stylesheet parsing). document::createFromString: 1287 ms -> 1048 ms on Obama wiki
* This basically reverts commit 5a00888b "var()" to improve performance.stasoid2022-11-211-2/+6
| | | | | I'll readd var() support later in a way that doesn't hurt performance so much. document::createFromString: 1730 ms -> 1287 ms on Obama wiki
* remove wchar supportstasoid2022-10-211-2/+2
| | | | closes issue #217
* parsing flex related CSS propertiesYuri Kobets2022-10-111-2/+86
|
* Internal refactoring (#212)Yuri Kobets2022-09-141-0/+12
* Refactored CSS properties All CSS related properties are moved into the separate class css_properties. Getters and setters are removed from classes element and html_tag. Access to the css_properties rleased via css() [ro] and css_w() [rw] methods * fix: el_text don't have to copy all css properties from parent * Refactored rendering code * Added flex and inline_flex values for display css property * Implementing box generation https://www.w3.org/TR/CSS22/visuren.html#box-gen * Split inlines on block box inside * Split parsing and rendering trees. * Fixed some bugs * Fixed: impossible to click urls on Obama wiki's toc * Make element::get_placement work again * Fixed: incorrect rendering table captions * find_styles_changes function returned to the element class * set parent correctly during render items split * fixed urls on https://en.cppreference.com/w/cpp/container/vector * fixed rendering blocks with width in percents Example: https://web.archive.org/web/20110101155107/http://www.unicode.org/ Issue #208 * Fixed placement of blocks with "overflow: hidden" with floating boxes. * refactoring of rendering block * Selectors :before and :after returned back with fixed behaviour. * fixed render_item::is_last_child_inline * fixed: text inside nested inlines has extra paddings/margins * fixed documet test