Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add support for visibility | bptato | 2023-06-07 | 1 | -5/+25 |
| | |||||
* | Add support for width, height media query | bptato | 2023-06-07 | 3 | -46/+220 |
| | |||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 3 | -25/+20 |
| | | | | | | | | | | | | | | | 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/match: fix next sibling selector (+) | bptato | 2023-02-13 | 1 | -2/+2 |
| | |||||
* | Remove unused variable | bptato | 2023-01-27 | 1 | -1/+0 |
| | |||||
* | WIP selector rewrite | bptato | 2023-01-27 | 4 | -451/+365 |
| | | | | pretty slow for some reason | ||||
* | selectorparser: refactor, fix combinator bugs | bptato | 2023-01-20 | 1 | -79/+79 |
| | | | | Fixes universal selectors after a combinator. | ||||
* | selectorparser: parse comma correctly in combinators | bptato | 2023-01-20 | 1 | -0/+3 |
| | |||||
* | 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 | 2 | -5/+17 |
| | | | | Also fix margin-left/right: auto, to some extent. | ||||
* | selectorparser: do not accept invalid selectors | bptato | 2023-01-07 | 1 | -44/+78 |
| | |||||
* | css/cascade: remove scoped sheets | bptato | 2023-01-07 | 2 | -34/+2 |
| | | | | ...in favor of handling all style elements like other browsers | ||||
* | css/values, parser, ...: fix background-image | bptato | 2023-01-06 | 2 | -8/+44 |
| | |||||
* | 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 |
| | |||||
* | dom: add better attribute reflection | bptato | 2023-01-02 | 1 | -2/+4 |
| | | | | | Instead of creating a new function for each attribute, use a single magic function for reflected attributes. | ||||
* | selectorparser: support :link, :visited | bptato | 2023-01-01 | 4 | -7/+22 |
| | | | | 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. | ||||
* | cascade: document a bit | bptato | 2023-01-01 | 1 | -2/+7 |
| | |||||
* | css/cascade: fix stylesheets not being copied in <head> | bptato | 2022-12-31 | 1 | -1/+3 |
| | |||||
* | selectorparser: accept less invalid selectors | bptato | 2022-12-31 | 1 | -2/+14 |
| | |||||
* | css: fix some bugs and improve cascading a bit | bptato | 2022-12-29 | 7 | -18/+78 |
| | |||||
* | css/values: fix length shorthand handling | bptato | 2022-12-28 | 1 | -10/+15 |
| | |||||
* | selectorparser: fix pseudo elements on combinator selectors | bptato | 2022-12-28 | 1 | -2/+5 |
| | |||||
* | layout/engine: get rid of dom dependency | bptato | 2022-12-27 | 3 | -23/+73 |
| | | | | Layout should only depend on cascading. | ||||
* | Implement DOMTokenList, item functions for collections | bptato | 2022-12-26 | 1 | -1/+1 |
| | |||||
* | Fix broken css color function parsing | bptato | 2022-12-25 | 1 | -31/+49 |
| | |||||
* | Add font color presentational hint | bptato | 2022-12-25 | 1 | -0/+6 |
| | |||||
* | css/values: fix some incorrectly accepted values | bptato | 2022-12-21 | 1 | -18/+29 |
| | |||||
* | More DOM work | bptato | 2022-12-19 | 3 | -8/+12 |
| | |||||
* | Add JS support to documents | bptato | 2022-12-18 | 1 | -1/+1 |
| | |||||
* | Display text for img tag, background-image | bptato | 2022-12-16 | 4 | -17/+55 |
| | |||||
* | 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. | ||||
* | cssparser: check for EOF in first read chunk | bptato | 2022-12-14 | 1 | -1/+4 |
| | | | | To-do: use decoderstream... | ||||
* | Fix stream error handling confusion, title display | bptato | 2022-12-13 | 1 | -2/+5 |
| | | | | Also probably other fixes. | ||||
* | cssparser: fix a parseAnB bug | bptato | 2022-12-12 | 1 | -1/+1 |
| | | | | Just a typo... | ||||
* | Fix color contrast correction | bptato | 2022-12-12 | 1 | -0/+5 |
| | | | | | Instead of just inverting the color and hoping for the best, convert it to YUV and increase/decrease luminance based on results. | ||||
* | 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 | 3 | -25/+154 |
| | |||||
* | 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 | 2 | -1/+11 |
| | |||||
* | Support vertical-align on td | bptato | 2022-12-11 | 2 | -4/+17 |
| | |||||
* | 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 |
| |