about summary refs log tree commit diff stats
path: root/src/render/renderdocument.nim
Commit message (Collapse)AuthorAgeFilesLines
* Add support for visibilitybptato2023-06-071-21/+23
|
* Working position: absolute, some other fixesbptato2023-05-131-8/+17
| | | | | | | | 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.
* renderdocument: fix img positionbptato2023-04-121-5/+5
|
* renderdocument: fix failing assertionbptato2023-01-071-0/+8
| | | | | I'm not sure if it was actually causing other issues, but better safe than sorry: formatting is no longer inserted for negative x coordinates.
* css/values, parser, ...: fix background-imagebptato2023-01-061-24/+24
|
* layout/engine: fix non-inheritable values for inline boxbptato2023-01-061-4/+14
| | | | | Also, a hack for inline box background-color. It doesn't work very well, but good enough for now.
* renderdocument: add StyledNodes to backgroundsbptato2023-01-031-10/+17
| | | | | | This makes it possible to e.g. click on this: <a href=x style="display: inline-block; width: 5em; height: 5em; background-color: red"></a>
* renderdocument: fix crash for image textbptato2023-01-031-1/+2
| | | | We need to check if y >= 0, or it fails.
* layout/engine: table layout improvements, fix pre-wrap whitespacebptato2022-12-281-1/+1
| | | | | | | | 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/+1
| | | | Layout should only depend on cascading.
* Proper support for tabsbptato2022-12-271-4/+4
|
* Display text for img tag, background-imagebptato2022-12-161-0/+12
|
* renderdocument: fix another formatting bugbptato2022-12-121-3/+5
|
* renderdocument: fix overwriting formatcellsbptato2022-12-121-3/+10
| | | | Gets rid of weird underline effects. Also fixes nx calculation, I think.
* Add multiple text-decoration, overline emulationbptato2022-12-071-5/+4
|
* Do not center error-corrected linesbptato2022-11-301-1/+1
| | | | It sounds like a good idea, but in fact looks terrible in lists.
* renderdocument: fix bug negative padwidth bugbptato2022-11-291-1/+8
| | | | padwidth could be negative because we didn't ensure cx <= x.
* Add missing iflush call, add experimental line height error correctionbptato2022-11-291-1/+14
| | | | It kind of works, I guess?
* 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/+1
|
* Add some quirks mode rules + presentational hintsbptato2022-11-251-1/+6
| | | | Only as a POC for now.
* Table fixes wipbptato2022-11-221-11/+0
|
* Terminal refactoringsbptato2022-11-201-28/+28
|
* Rewrite buffer/pager for multi-processingbptato2022-11-191-1/+1
|
* Very much WIP table implementationbptato2022-11-151-0/+11
|
* Fix renderdocument setText etc.bptato2022-08-021-81/+117
|
* Refactor some layout engine types, fix list-itembptato2022-07-201-8/+9
|
* Clean up vertical line box alignment codebptato2022-07-201-4/+4
| | | | | | 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.
* Use StyledNodes instead of passing the entire DOM to the layout enginebptato2022-07-161-7/+9
| | | | | This moves pseudo element generation to the cascading phase. For now it also breaks style caching.
* Refactor layout enginebptato2022-07-151-2/+2
|
* specified -> computedbptato2022-06-181-2/+2
| | | | Continuing commit 7e65add
* Re-implement list itemsbptato2022-06-171-0/+4
| | | | Now with proper list-style-position: outside support!
* Re-implement inline-blockbptato2022-06-171-9/+7
| | | | | Still far from standard-compliant, or even non-broken... but it's something
* Simplify offset, fix a text node bugbptato2022-06-081-4/+4
|
* Layout: insignificant changes regarding offsetbptato2022-05-291-2/+2
|
* Reduce formatting complexitybptato2022-02-191-107/+48
| | | | | | Formatting based on cells instead of bytes. No clue why I'd ever thought the latter would be a good idea. This fixes background colors too. I think.
* Background color improvementsbptato2022-02-151-3/+13
|
* Fix format background unicode problemsbptato2022-02-151-19/+54
|
* Incomplete background-color implementationbptato2022-02-141-42/+140
| | | | Has numerous flaws which will have to be corrected later.
* Implement blink tagbptato2022-02-121-0/+2
| | | | with text-decoration: blink.
* Avoid stack overflow in renderBlockContextbptato2022-01-301-8/+13
|
* Implement list-style-positionbptato2022-01-301-1/+1
|
* Implement formsbptato2022-01-291-0/+5
| | | | | | Note: for now, only input tags are supported. Also the implementation is extremely hacky and needs refactoring... But it works, I think.
* Implement line-height, vertical-alignbptato2022-01-281-6/+7
|
* Implement paddingbptato2022-01-261-21/+25
|
* Fix whitespace stylingbptato2022-01-261-0/+50
|
* Fix node to cell mappingbptato2022-01-241-1/+1
|
* Fix incorrect canvas width and whitespace bugsbptato2022-01-231-2/+2
|
* Use pixels as the base unit for the layoutbptato2022-01-231-67/+11
|
* Fix page navigationbptato2022-01-221-7/+4
|