Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | mediaquery: fix logic error | bptato | 2023-08-14 | 1 | -1/+1 | |
| | | | | Not isAscii means we cannot convert to char. Oops. | |||||
* | css: implement case insensitivity | bptato | 2023-08-10 | 2 | -127/+142 | |
| | | | | For some reason I forgot about this. | |||||
* | Fixes & workarounds to compile on Nim 2.0.0 | bptato | 2023-08-01 | 2 | -3/+4 | |
| | | | | | | | | | | | | | | * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.) | |||||
* | css: very minor optimizations | bptato | 2023-07-28 | 2 | -19/+15 | |
| | | | | probably insignificant overall | |||||
* | mediaquery: fix some missing has checks in parser | bptato | 2023-07-28 | 1 | -0/+2 | |
| | ||||||
* | css: handle unknown tag names correctly | bptato | 2023-07-25 | 3 | -5/+16 | |
| | | | | | | Instead of grouping all of them into TAG_UNKNOWN, match their tag names. To-do: this implementation is not very efficient. | |||||
* | mediaquery: better debugging functions | bptato | 2023-07-23 | 1 | -3/+35 | |
| | ||||||
* | css: fix percentage min/max-width values | bptato | 2023-07-23 | 1 | -1/+1 | |
| | ||||||
* | Add StyledNode stringifier for debugging | bptato | 2023-07-08 | 1 | -0/+14 | |
| | ||||||
* | Fix bug in media-query parsing | bptato | 2023-07-04 | 3 | -12/+36 | |
| | | | | This fixes interpretation of "@media (min/max-width: 1234px)". | |||||
* | Use LayoutUnit in layout | bptato | 2023-07-04 | 2 | -24/+28 | |
| | | | | 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. | |||||
* | cssparser: remove unused function, cast instead of collect | bptato | 2023-06-29 | 1 | -21/+5 | |
| | ||||||
* | css/values: remove stray eprint | bptato | 2023-06-25 | 1 | -2/+0 | |
| | ||||||
* | cssparser: remove SyntaxError | bptato | 2023-06-25 | 1 | -20/+27 | |
| | | | | return DOMException instead | |||||
* | css/values: use Result instead of exceptions | bptato | 2023-06-25 | 2 | -308/+342 | |
| | ||||||
* | input size as presentational hint | bptato | 2023-06-18 | 1 | -0/+8 | |
| | ||||||
* | Fix various layout bugs, prepare for image support | bptato | 2023-06-12 | 2 | -6/+9 | |
| | ||||||
* | Use width, height for canvas in css | bptato | 2023-06-10 | 1 | -1/+1 | |
| | ||||||
* | 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 | |
| |