Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cascade: simplify | bptato | 2023-12-09 | 1 | -2/+1 |
| | |||||
* | cascade: fix regression | bptato | 2023-12-09 | 1 | -18/+23 |
| | | | | | Styled children must be added to their parents *before* they are styled, because match expects this to hold. | ||||
* | sheet: fix a correctness issue, misc refactorings | bptato | 2023-12-09 | 1 | -2/+2 |
| | | | | | | | * Fix a bug where rules would be sorted incorrectly if retrieved from the cache. * Use withValue where possible * camelCase some variables, de-extern some functions, etc. | ||||
* | cascade: refactor & optimize | bptato | 2023-12-09 | 1 | -153/+192 |
| | | | | | | * Break up applyRules into smaller functions * Do not call calcRules for every child pseudo element separately; just use parent's DeclarationListMap | ||||
* | layout: add floats | bptato | 2023-11-17 | 1 | -2/+2 |
| | | | | | | | | | | | | | yay!!!! * Add support for float: left, float: right Also, misc stuff: * Add support for display: flow-root * Set line width to the maximum allowed width on line wrap * Various refactorings Still todo: support clear | ||||
* | Add jspropnames, CSSStyleDeclaration stub | bptato | 2023-10-25 | 1 | -5/+3 |
| | |||||
* | css: fix list style type presentational hints | bptato | 2023-10-14 | 1 | -17/+20 |
| | | | | third time's the charm | ||||
* | css: support more list types, fix <ul/ol type=... | bptato | 2023-10-14 | 1 | -5/+15 |
| | | | | | | | Turns out you can't just throw the value into the CSS value parser. (Also, correction for the previous commit message: it is not LI but UL or OL.) | ||||
* | css: support alphabetic list types, support <LI TYPE=... | bptato | 2023-10-14 | 1 | -0/+9 |
| | |||||
* | update chame | bptato | 2023-09-19 | 1 | -0/+1 |
| | | | | and with that, resolve the unknown input type issue | ||||
* | move around more modules | bptato | 2023-09-14 | 1 | -1/+1 |
| | | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/ | ||||
* | color: fix parseLegacyColor bugs | bptato | 2023-09-13 | 1 | -6/+10 |
| | | | | | | * lower-case the input string. * do not fall back to black on error. (i.e. remove the special cased parseLegacyColor0 in cascade) | ||||
* | config: allow modification through JS | bptato | 2023-08-27 | 1 | -9/+12 |
| | | | | | | | This used to be possible until I moved everything under separate headers to their respective objects. Now it works again, mostly; modification of some attributes is still missing. | ||||
* | Move HTML parsing into Chame | bptato | 2023-08-15 | 1 | -1/+2 |
| | | | | Operation "modularize Chawan somewhat" part 2 | ||||
* | css: very minor optimizations | bptato | 2023-07-28 | 1 | -5/+5 |
| | | | | probably insignificant overall | ||||
* | Fix bug in media-query parsing | bptato | 2023-07-04 | 1 | -6/+16 |
| | | | | This fixes interpretation of "@media (min/max-width: 1234px)". | ||||
* | Use LayoutUnit in layout | bptato | 2023-07-04 | 1 | -4/+5 |
| | | | | Reduces ugly rendering caused by rounding errors. | ||||
* | cascade: remove sugar, add DeclarationListMap type | bptato | 2023-06-29 | 1 | -36/+53 |
| | | | | So we don't have to pass each DeclarationList separately. | ||||
* | input size as presentational hint | bptato | 2023-06-18 | 1 | -0/+8 |
| | |||||
* | Fix various layout bugs, prepare for image support | bptato | 2023-06-12 | 1 | -1/+2 |
| | |||||
* | Use width, height for canvas in css | bptato | 2023-06-10 | 1 | -1/+1 |
| | |||||
* | Add support for width, height media query | bptato | 2023-06-07 | 1 | -23/+35 |
| | |||||
* | Add support for canvas and multipart | bptato | 2023-06-05 | 1 | -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 align | bptato | 2023-01-08 | 1 | -0/+10 |
| | | | | Also fix margin-left/right: auto, to some extent. | ||||
* | css/cascade: remove scoped sheets | bptato | 2023-01-07 | 1 | -32/+2 |
| | | | | ...in favor of handling all style elements like other browsers | ||||
* | 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 | 1 | -4/+3 |
| | | | | I say "support", but :visited is never matched. | ||||
* | 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 |
| | |||||
* | css: fix some bugs and improve cascading a bit | bptato | 2022-12-29 | 1 | -11/+22 |
| | |||||
* | layout/engine: get rid of dom dependency | bptato | 2022-12-27 | 1 | -18/+39 |
| | | | | Layout should only depend on cascading. | ||||
* | Implement DOMTokenList, item functions for collections | bptato | 2022-12-26 | 1 | -1/+1 |
| | |||||
* | Add font color presentational hint | bptato | 2022-12-25 | 1 | -0/+6 |
| | |||||
* | More DOM work | bptato | 2022-12-19 | 1 | -3/+3 |
| | |||||
* | Display text for img tag, background-image | bptato | 2022-12-16 | 1 | -3/+15 |
| | |||||
* | 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. | ||||
* | Add support for q, fix list-item counter behavior | bptato | 2022-12-12 | 1 | -4/+12 |
| | |||||
* | Add div align | bptato | 2022-12-11 | 1 | -0/+9 |
| | |||||
* | Support vertical-align on td | bptato | 2022-12-11 | 1 | -1/+14 |
| | |||||
* | Add textarea | bptato | 2022-11-28 | 1 | -5/+18 |
| | | | | Editing is implemented using an external editor (like vi). | ||||
* | Fix some table layout issues | bptato | 2022-11-25 | 1 | -0/+2 |
| | |||||
* | Add some quirks mode rules + presentational hints | bptato | 2022-11-25 | 1 | -1/+43 |
| | | | | Only as a POC for now. | ||||
* | Avoid forking child processes from the main process | bptato | 2022-11-24 | 1 | -1/+3 |
| | | | | Caveat: this breaks piped streams. | ||||
* | Make it compile... | bptato | 2022-10-19 | 1 | -2/+2 |
| | |||||
* | Re-enable media queries | bptato | 2022-10-19 | 1 | -2/+3 |
| | |||||
* | Fix nth-child bugs, rename select to match | bptato | 2022-08-23 | 1 | -1/+1 |
| | |||||
* | Fix incorrect selector parsing, remove httpclient from loader | bptato | 2022-08-03 | 1 | -9/+24 |
| | |||||
* | Implement revert value | bptato | 2022-07-30 | 1 | -59/+20 |
| | |||||
* | Fix cascading bugs & performance issues | bptato | 2022-07-28 | 1 | -3/+10 |
| | |||||
* | Fix StyledNode invalidation & others | bptato | 2022-07-27 | 1 | -44/+40 |
| |