about summary refs log tree commit diff stats
path: root/src/layout/box.nim
Commit message (Collapse)AuthorAgeFilesLines
* layout: fix min-height/max-height handlingbptato2023-06-071-0/+2
|
* Working position: absolute, some other fixesbptato2023-05-131-3/+6
| | | | | | | | Fix margin-top being used instead of margin-bottom. Content width resolving makes somewhat more sense now. min-width, max-width doesn't completely break width calculation anymore. Finally, position: absolute is no longer implemented as a horribly broken hack.
* layout/engine: fix double positioning absolute boxesbptato2023-02-191-0/+3
| | | | | by checking if the box has been positioned before. Not a very good solution, but it works...
* layout: fix position:absolute, remove position:fixedbptato2023-01-201-1/+1
| | | | Now at least absolute should be positioned correctly.
* layout/engine: fix non-inheritable values for inline boxbptato2023-01-061-0/+6
| | | | | Also, a hack for inline box background-color. It doesn't work very well, but good enough for now.
* layout/engine: fix crash on padding-rightbptato2022-12-311-1/+0
|
* layout/engine: table layout improvements, fix pre-wrap whitespacebptato2022-12-281-3/+20
| | | | | | | | Table layout: weight calculation is no longer broken. We use maxContentWidth for this, which the first pass of a non-specified table cell layout overrides. pre-wrap: just a minor fix - include it in whitespacepre, now that we have a distinction between pre and wrapping white-space
* layout/engine: get rid of dom dependencybptato2022-12-271-1/+0
| | | | Layout should only depend on cascading.
* Proper support for tabsbptato2022-12-271-0/+1
|
* layout/engine: clean up & fix width computationbptato2022-12-251-7/+10
| | | | | Get rid of compwidth, fix some edge cases where boxes would be computed incorrectly, etc.
* layout/engine: simplify a bitbptato2022-12-211-3/+3
|
* Display text for img tag, background-imagebptato2022-12-161-2/+1
|
* layout/engine: clean up shrink attributebptato2022-12-161-4/+0
|
* layout/engine: fix a <br> bug that ate inline boxes, add broken ↵bptato2022-12-161-1/+5
| | | | | | | | | min-width/max-width min-width, max-width, min-height, max-height are mostly broken, because they aren't enforced on inline level. Though really the whole size calculation mechanism needs to be refactored, its current state is horrible.
* Add border-collapse, border-spacing; fix fd sending hackbptato2022-12-111-0/+3
| | | | | | Note that they don't actually work correctly because of rounding errors. The fd sending hack now emits C directly. Let's hope this actually works.
* Support vertical-align on tdbptato2022-12-111-1/+1
|
* Implement a proper table layoutbptato2022-12-111-3/+10
|
* Table layout improvementsbptato2022-12-111-1/+1
|
* Add multiple text-decoration, overline emulationbptato2022-12-071-1/+1
|
* Remove unused BlockBox attributebptato2022-12-071-1/+0
|
* Fix table cell reflowbptato2022-12-071-2/+4
| | | | (still not perfect...)
* Table changesbptato2022-12-061-1/+0
| | | | mostly failed attempts to improve the table layout
* Add position css property, inline block fixesbptato2022-11-281-2/+3
| | | | | More specifically, inline block white-space is no longer incorrectly determined by its computed values, but rather by its parent's values.
* Fix some table layout issuesbptato2022-11-251-1/+6
|
* Table improvementsbptato2022-11-221-3/+4
|
* Table fixes wipbptato2022-11-221-3/+10
|
* Terminal refactoringsbptato2022-11-201-2/+2
|
* Fix table cell size calculationbptato2022-11-191-2/+1
|
* Very much WIP table implementationbptato2022-11-151-0/+2
|
* Work on tablesbptato2022-08-181-0/+7
|
* More table workbptato2022-07-301-1/+3
|
* Fix StyledNode invalidation & othersbptato2022-07-271-5/+8
|
* Fix & simplify blockgroupbptato2022-07-251-0/+6
| | | | + start implementing table
* MarkerBoxBuilder: get rid of ordinalvaluebptato2022-07-251-1/+0
|
* Refactor some layout engine types, fix list-itembptato2022-07-201-16/+6
|
* Clean up vertical line box alignment codebptato2022-07-201-3/+9
| | | | | | This fixes the non-standard alignment of inline blocks. While we're at it, renamed "inline rows" to line boxes, as that's pretty much what they are now.
* Fix basic list displaybptato2022-07-151-0/+1
|
* Refactor layout enginebptato2022-07-151-7/+48
|
* specified -> computedbptato2022-06-181-2/+2
| | | | Continuing commit 7e65add
* Re-implement list itemsbptato2022-06-171-7/+13
| | | | Now with proper list-style-position: outside support!
* Re-implement inline-blockbptato2022-06-171-5/+2
| | | | | Still far from standard-compliant, or even non-broken... but it's something
* Simplify offset, fix a text node bugbptato2022-06-081-23/+2
|
* Layout: insignificant changes regarding offsetbptato2022-05-291-2/+25
|
* SpecifiedValue -> ComputedValuebptato2022-05-131-2/+2
| | | | Actually it's neither but ComputedValue is more accurate.
* Some refactoring for layout engine rewritebptato2022-05-101-21/+18
|
* Background color improvementsbptato2022-02-151-1/+9
|
* Implement list-style-positionbptato2022-01-301-0/+3
|
* Implement formsbptato2022-01-291-1/+2
| | | | | | Note: for now, only input tags are supported. Also the implementation is extremely hacky and needs refactoring... But it works, I think.
* Implement text-align and <center>bptato2022-01-291-1/+4
|
* Implement line-height, vertical-alignbptato2022-01-281-1/+3
|