Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | css: change type of rvalue to char (from Rune) | bptato | 2023-10-01 | 1 | -4/+4 |
| | | | | | | | | We did were not using it as a unicode value anywhere, it was just making our life harder. If we ever need unicode delimiter tokens, we can re-introduce them as a different token type. | ||||
* | Get rid of unicode.toLower | bptato | 2023-10-01 | 1 | -3/+4 |
| | | | | | It was used by mistake in a hundred percent of the cases we were using it. | ||||
* | px: convert to float first for percentage values | bptato | 2023-09-20 | 1 | -1/+1 |
| | | | | | | | | | px now converts to float64 before converting back to a layout unit when calculating percentage values. This should reduce overflow crashes somewhat. (The real solution would be to not crash on overflow, but that's a little more difficult problem to solve.) | ||||
* | move around more modules | bptato | 2023-09-14 | 1 | -2/+2 |
| | | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/ | ||||
* | css: implement case insensitivity | bptato | 2023-08-10 | 1 | -125/+140 |
| | | | | For some reason I forgot about this. | ||||
* | css: fix percentage min/max-width values | bptato | 2023-07-23 | 1 | -1/+1 |
| | |||||
* | Fix bug in media-query parsing | bptato | 2023-07-04 | 1 | -4/+4 |
| | | | | This fixes interpretation of "@media (min/max-width: 1234px)". | ||||
* | Use LayoutUnit in layout | bptato | 2023-07-04 | 1 | -20/+23 |
| | | | | Reduces ugly rendering caused by rounding errors. | ||||
* | css/values: remove stray eprint | bptato | 2023-06-25 | 1 | -2/+0 |
| | |||||
* | css/values: use Result instead of exceptions | bptato | 2023-06-25 | 1 | -305/+338 |
| | |||||
* | Fix various layout bugs, prepare for image support | bptato | 2023-06-12 | 1 | -5/+7 |
| | |||||
* | Add support for visibility | bptato | 2023-06-07 | 1 | -5/+25 |
| | |||||
* | Add support for width, height media query | bptato | 2023-06-07 | 1 | -1/+2 |
| | |||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 1 | -15/+10 |
| | | | | | | | | | | | | | | | 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/values: add some stringifiers | bptato | 2023-03-10 | 1 | -4/+13 |
| | |||||
* | css/values: remove equals | bptato | 2023-01-08 | 1 | -32/+0 |
| | | | | it had zero practical use and was annoying anyways | ||||
* | css/values: add float | bptato | 2023-01-08 | 1 | -4/+23 |
| | | | | it does nothing... | ||||
* | css/cascade, layout/engine: add table align | bptato | 2023-01-08 | 1 | -5/+7 |
| | | | | Also fix margin-left/right: auto, to some extent. | ||||
* | css/values, parser, ...: fix background-image | bptato | 2023-01-06 | 1 | -6/+39 |
| | |||||
* | ua.css: fix color, css/values: fix globals | bptato | 2023-01-04 | 1 | -1/+8 |
| | |||||
* | css/values: consistently use exceptions | bptato | 2023-01-03 | 1 | -56/+41 |
| | | | | | Options are great, but only if used consistently. This also fixes some weird bugs where exceptions were handled incorrectly. | ||||
* | css/values: remove todo | bptato | 2023-01-03 | 1 | -1/+0 |
| | |||||
* | selectorparser: support :link, :visited | bptato | 2023-01-01 | 1 | -2/+9 |
| | | | | I say "support", but :visited is never matched. | ||||
* | css/values: apply presentational hints after UA style | bptato | 2023-01-01 | 1 | -4/+5 |
| | | | | | So that e.g. table valign overrides the user-agent vertical-align value, but still respects user/author style. | ||||
* | css: fix some bugs and improve cascading a bit | bptato | 2022-12-29 | 1 | -3/+21 |
| | |||||
* | css/values: fix length shorthand handling | bptato | 2022-12-28 | 1 | -10/+15 |
| | |||||
* | layout/engine: get rid of dom dependency | bptato | 2022-12-27 | 1 | -4/+33 |
| | | | | Layout should only depend on cascading. | ||||
* | Fix broken css color function parsing | bptato | 2022-12-25 | 1 | -31/+49 |
| | |||||
* | css/values: fix some incorrectly accepted values | bptato | 2022-12-21 | 1 | -18/+29 |
| | |||||
* | Display text for img tag, background-image | bptato | 2022-12-16 | 1 | -12/+36 |
| | |||||
* | layout/engine: fix a <br> bug that ate inline boxes, add broken ↵ | bptato | 2022-12-16 | 1 | -4/+32 |
| | | | | | | | | | 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. | ||||
* | Make background-color non-inherited; fix {}= for CSSComputedValues | bptato | 2022-12-12 | 1 | -7/+8 |
| | |||||
* | Add support for q, fix list-item counter behavior | bptato | 2022-12-12 | 1 | -20/+132 |
| | |||||
* | Add border-collapse, border-spacing; fix fd sending hack | bptato | 2022-12-11 | 1 | -9/+59 |
| | | | | | | 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 align | bptato | 2022-12-11 | 1 | -1/+2 |
| | |||||
* | Support vertical-align on td | bptato | 2022-12-11 | 1 | -3/+3 |
| | |||||
* | Add caption-side | bptato | 2022-12-11 | 1 | -95/+119 |
| | |||||
* | Add support for margin-left/right: auto | bptato | 2022-12-11 | 1 | -16/+70 |
| | |||||
* | Fix blocking socketstream recv/send, clean up ips/serialize & types/color | bptato | 2022-12-10 | 1 | -3/+0 |
| | | | | Write always blocks for now, as it's too big of a footgun not to | ||||
* | css/values: better shorthand handling | bptato | 2022-12-08 | 1 | -102/+122 |
| | |||||
* | Add multiple text-decoration, overline emulation | bptato | 2022-12-07 | 1 | -12/+12 |
| | |||||
* | Fix index error in parseDimensionValues | bptato | 2022-12-03 | 1 | -1/+1 |
| | |||||
* | Fix initial values for left, right, top, bottom | bptato | 2022-11-29 | 1 | -1/+6 |
| | |||||
* | Add position css property, inline block fixes | bptato | 2022-11-28 | 1 | -3/+31 |
| | | | | | 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 issues | bptato | 2022-11-25 | 1 | -14/+24 |
| | |||||
* | Add some quirks mode rules + presentational hints | bptato | 2022-11-25 | 1 | -10/+13 |
| | | | | Only as a POC for now. | ||||
* | Table improvements | bptato | 2022-11-22 | 1 | -0/+23 |
| | |||||
* | Color & term improvements | bptato | 2022-11-21 | 1 | -17/+4 |
| | |||||
* | Terminal refactorings | bptato | 2022-11-20 | 1 | -18/+18 |
| | |||||
* | Fix table cell size calculation | bptato | 2022-11-19 | 1 | -2/+2 |
| |