about summary refs log tree commit diff stats
path: root/src/css/cascade.nim
Commit message (Collapse)AuthorAgeFilesLines
* input size as presentational hintbptato2023-06-181-0/+8
|
* Fix various layout bugs, prepare for image supportbptato2023-06-121-1/+2
|
* Use width, height for canvas in cssbptato2023-06-101-1/+1
|
* Add support for width, height media querybptato2023-06-071-23/+35
|
* Add support for canvas and multipartbptato2023-06-051-6/+6
| | | | | | | | | | | | | | | Quite incomplete canvas implementation. Crucially, the layout engine can't do much with whatever is drawn because it doesn't support images yet. I've re-introduced multipart as well, with the FormData API. For the append function I've also introduced a hack to the JS binding generator that allows requesting the JSContext pointer in nim procs. Really I should just fix the union generator thing and add support for overloading. In conclusion, for now the only thing canvas can be used for is exporting it as PNG and uploading it somewhere. Also, we now have PNG encoding and decoding too. (Now if only we had sixels as well...)
* css/cascade, layout/engine: add table alignbptato2023-01-081-0/+10
| | | | Also fix margin-left/right: auto, to some extent.
* css/cascade: remove scoped sheetsbptato2023-01-071-32/+2
| | | | ...in favor of handling all style elements like other browsers
* dom: add better attribute reflectionbptato2023-01-021-2/+4
| | | | | Instead of creating a new function for each attribute, use a single magic function for reflected attributes.
* selectorparser: support :link, :visitedbptato2023-01-011-4/+3
| | | | I say "support", but :visited is never matched.
* cascade: document a bitbptato2023-01-011-2/+7
|
* css/cascade: fix stylesheets not being copied in <head>bptato2022-12-311-1/+3
|
* css: fix some bugs and improve cascading a bitbptato2022-12-291-11/+22
|
* layout/engine: get rid of dom dependencybptato2022-12-271-18/+39
| | | | Layout should only depend on cascading.
* Implement DOMTokenList, item functions for collectionsbptato2022-12-261-1/+1
|
* Add font color presentational hintbptato2022-12-251-0/+6
|
* More DOM workbptato2022-12-191-3/+3
|
* Display text for img tag, background-imagebptato2022-12-161-3/+15
|
* Fix color contrast correctionbptato2022-12-121-0/+5
| | | | | Instead of just inverting the color and hoping for the best, convert it to YUV and increase/decrease luminance based on results.
* Add support for q, fix list-item counter behaviorbptato2022-12-121-4/+12
|
* Add div alignbptato2022-12-111-0/+9
|
* Support vertical-align on tdbptato2022-12-111-1/+14
|
* Add textareabptato2022-11-281-5/+18
| | | | Editing is implemented using an external editor (like vi).
* Fix some table layout issuesbptato2022-11-251-0/+2
|
* Add some quirks mode rules + presentational hintsbptato2022-11-251-1/+43
| | | | Only as a POC for now.
* Avoid forking child processes from the main processbptato2022-11-241-1/+3
| | | | Caveat: this breaks piped streams.
* Make it compile...bptato2022-10-191-2/+2
|
* Re-enable media queriesbptato2022-10-191-2/+3
|
* Fix nth-child bugs, rename select to matchbptato2022-08-231-1/+1
|
* Fix incorrect selector parsing, remove httpclient from loaderbptato2022-08-031-9/+24
|
* Implement revert valuebptato2022-07-301-59/+20
|
* Fix cascading bugs & performance issuesbptato2022-07-281-3/+10
|
* Fix StyledNode invalidation & othersbptato2022-07-271-44/+40
|
* Optimize dombptato2022-07-211-3/+4
|
* Fix formsbptato2022-07-171-39/+17
|
* Fix StyledNode cachingbptato2022-07-171-93/+37
|
* Use StyledNodes instead of passing the entire DOM to the layout enginebptato2022-07-161-30/+175
| | | | | This moves pseudo element generation to the cascading phase. For now it also breaks style caching.
* Implement HTML5 parsingbptato2022-07-111-4/+6
| | | | | | | Completely replaced the previous HTML2 (?) parser, which was a bad re-implementation of w3m's parser in the first place. Now we have a (sort of) compliant HTML5 parser. Needs tests, badly.
* SpecifiedValue -> ComputedValuebptato2022-05-131-2/+2
| | | | Actually it's neither but ComputedValue is more accurate.
* Rename conflicting source filesbptato2022-05-101-2/+2
| | | | Nim can't really differentiate between them, unfortunately.
* Fix stylesheet containment bugbptato2022-01-251-32/+35
|
* Fix author style sheet assignmentbptato2022-01-241-2/+9
|
* Optimize cascading algorithmbptato2022-01-241-61/+27
|
* Refactorbptato2022-01-241-1/+1
|
* Fix ::before pseudo elem positioningbptato2022-01-231-4/+7
|
* Support external stylesheetsbptato2022-01-231-1/+12
|
* Avoid unnecessary rendering on hover change etcbptato2022-01-221-4/+24
|
* Re-implement, height, fix pseudo on hoverbptato2022-01-221-0/+2
|
* Fix media query bug, do not refresh page without css change (wip)bptato2022-01-221-2/+2
|
* Re-implement inline blocksbptato2022-01-191-5/+1
|
* Fix crash on reshapebptato2022-01-191-2/+0
|