about summary refs log tree commit diff stats
path: root/src/layout
Commit message (Collapse)AuthorAgeFilesLines
* layout/engine: fix text-align: cha-* for boxes with shrinkbptato2023-01-011-15/+22
| | | | | In shrink, we can only take up as much space as our content, so we first have to determine our content width and only then align the children.
* layout/engine: fix crash on padding-rightbptato2022-12-312-2/+1
|
* layout/engine: add hanging spaces, markersbptato2022-12-281-10/+25
| | | | | | Implement hanging ascii spaces. Non-ascii is still not supported... Markers are now built in shrunken inline contexts, and are set to white-space pre, so the trailing space is preserved.
* layout/engine: table layout improvements, fix pre-wrap whitespacebptato2022-12-282-126/+206
| | | | | | | | 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-272-32/+22
| | | | Layout should only depend on cascading.
* Proper support for tabsbptato2022-12-272-4/+10
|
* layout/engine: calculate wrappervals only if neededbptato2022-12-261-2/+2
|
* Fix an anonymous table bugbptato2022-12-251-1/+7
| | | | | ...by flushing anonymous tables *before* inline layout is set (therefore avoiding placing them inside inline boxes.)
* layout/engine: handle soft hyphens, wrap on ascii dashbptato2022-12-251-13/+42
|
* layout/engine: store vertical-align at atom creationbptato2022-12-251-10/+9
|
* layout/engine: use spec in positionBlocksbptato2022-12-251-3/+2
|
* layout/engine: clean up & fix width computationbptato2022-12-252-163/+142
| | | | | Get rid of compwidth, fix some edge cases where boxes would be computed incorrectly, etc.
* layout/engine: simplify a bitbptato2022-12-212-38/+29
|
* layout/engine: reset absolutes on relayoutbptato2022-12-201-0/+1
|
* Add unicode normalization, etcbptato2022-12-191-3/+9
|
* Fix division by zero in table layoutbptato2022-12-171-6/+8
|
* Display text for img tag, background-imagebptato2022-12-162-42/+49
|
* Remove obsolete buildInlineTableBoxbptato2022-12-161-27/+0
|
* layout/engine: clean up shrink attributebptato2022-12-162-58/+69
|
* layout/engine: fix a <br> bug that ate inline boxes, add broken ↵bptato2022-12-162-11/+55
| | | | | | | | | 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.
* Fix tab width in prebptato2022-12-151-0/+2
|
* Make background-color non-inherited; fix {}= for CSSComputedValuesbptato2022-12-121-17/+11
|
* Add support for q, fix list-item counter behaviorbptato2022-12-121-49/+100
|
* layout/engine: fix wrap on pre-wrap (instead of pre-line)bptato2022-12-111-1/+1
|
* Add border-collapse, border-spacing; fix fd sending hackbptato2022-12-112-7/+27
| | | | | | 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.
* Add div alignbptato2022-12-111-9/+18
|
* Support vertical-align on tdbptato2022-12-112-19/+41
|
* Add caption-sidebptato2022-12-111-9/+32
|
* Implement a proper table layoutbptato2022-12-112-30/+109
|
* Table layout improvementsbptato2022-12-112-7/+29
|
* Add support for margin-left/right: autobptato2022-12-111-1/+17
|
* Add multiple text-decoration, overline emulationbptato2022-12-071-1/+1
|
* Remove unused BlockBox attributebptato2022-12-071-1/+0
|
* Note on table layout + accept inline-table in iflushbptato2022-12-071-1/+3
|
* Fix table cell reflowbptato2022-12-072-54/+37
| | | | (still not perfect...)
* Table changesbptato2022-12-062-16/+25
| | | | mostly failed attempts to improve the table layout
* Hacky inline-table implementationbptato2022-12-051-2/+45
|
* layout: clean up previously rendered root boxesbptato2022-11-301-0/+1
|
* Add missing iflush call, add experimental line height error correctionbptato2022-11-291-0/+1
| | | | It kind of works, I guess?
* Add position css property, inline block fixesbptato2022-11-282-106/+187
| | | | | More specifically, inline block white-space is no longer incorrectly determined by its computed values, but rather by its parent's values.
* Fix some regressions, add loading progress barbptato2022-11-271-5/+3
|
* Fix some table layout issuesbptato2022-11-252-173/+238
|
* Add some quirks mode rules + presentational hintsbptato2022-11-251-0/+6
| | | | Only as a POC for now.
* Fix misc bugsbptato2022-11-251-6/+6
|
* Fix typobptato2022-11-251-2/+2
|
* Table improvementsbptato2022-11-222-37/+58
|
* Table fixes wipbptato2022-11-222-49/+61
|
* Terminal refactoringsbptato2022-11-202-7/+7
|
* Fix table cell size calculationbptato2022-11-192-34/+40
|
* Fix incorrect fit-to-shrink heuristicsbptato2022-11-151-1/+5
| | | | No guarantees that it's correct now...