Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sheet: dedupe tag :is hashes | bptato | 2025-01-17 | 1 | -1/+2 |
| | |||||
* | cascade: basic CSS variable support | bptato | 2025-01-16 | 1 | -14/+11 |
| | | | | | | | | | | | and once again, there was light... Well, it barely works, but it's enough to get colors back on most sites. Nested variables aren't supported for now, and shorthand expansion only "works" for `background' (it's a hack). Props to the W3C for introducing the C preprocessor to CSS - I was starting to confuse it with JSSS after calc(). | ||||
* | sheet, selectorparser: fix attr hashing, hash multiple tags in :is | bptato | 2025-01-16 | 1 | -16/+17 |
| | |||||
* | css: refactor selector parsing & cascading, some work on variables | bptato | 2025-01-14 | 1 | -16/+30 |
| | | | | | | | | | Untangled some nested arrays to reduce the number of intermediary seqs in cascade, and collapsed the two rule def sorts into just one (per pseudo element). This should make cascading somewhat faster. Also, we now parse variables, but they aren't resolved yet. Probably a seq won't cut it for var lookup... | ||||
* | cssvalues, sheet: fix quotes parsing, misc cleanup | bptato | 2025-01-12 | 1 | -4/+2 |
| | |||||
* | mediaquery: add serialization | bptato | 2025-01-06 | 1 | -4/+2 |
| | | | | also, reduce the number of types named MediaQueryList by 50% | ||||
* | css: resolve units to px before layout | bptato | 2024-12-16 | 1 | -19/+23 |
| | | | | Lets us skip a couple pointless multiplications/divisions during layout. | ||||
* | dom, css: fix case-insensitive class/id/attr matching | bptato | 2024-12-15 | 1 | -1/+1 |
| | | | | Uses an additional lower-case map for O(1) case-insensitive comparisons. | ||||
* | cssparser: misc cleanup | bptato | 2024-12-07 | 1 | -1/+1 |
| | | | | another case of "the object model was unnecessarily complex" | ||||
* | sheet, mediaquery: misc cleanup | bptato | 2024-12-01 | 1 | -1/+1 |
| | |||||
* | dom: add support for @import | bptato | 2024-12-01 | 1 | -22/+41 |
| | | | | only the most basic form; no media queries yet | ||||
* | cssparser: fix parsing of unrecognized at rules | bptato | 2024-11-02 | 1 | -3/+2 |
| | | | | + clean up a bit | ||||
* | cssvalues, sheet: fix some more case sensitivity bugs | bptato | 2024-08-02 | 1 | -3/+2 |
| | |||||
* | css: hash attribute names | bptato | 2024-07-29 | 1 | -41/+34 |
| | |||||
* | css: slightly optimize cascade | bptato | 2024-06-02 | 1 | -12/+24 |
| | | | | Parse rule values in sheet addRule, not during cascade. | ||||
* | cssparser: refactor | bptato | 2024-05-01 | 1 | -12/+9 |
| | | | | | | | | | * factor out skipWhitespace * remove streams dependency (cssparser could never stream without blocking the event loop, so we were just passing a StringStream in all cases, which made the whole streaming pointless.) | ||||
* | Update code style | bptato | 2024-04-17 | 1 | -24/+18 |
| | | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines | ||||
* | dom: atomize id, name, DOMTokenList | bptato | 2024-02-08 | 1 | -57/+60 |
| | |||||
* | Update chame | bptato | 2024-02-07 | 1 | -25/+35 |
| | | | | | | | | * Update chame to the latest version * Get rid of nodeType usage * Add atoms * Re-implement DOM attributes * document.write | ||||
* | Use std/* imports everywhere | bptato | 2024-01-07 | 1 | -3/+3 |
| | |||||
* | css/sheet: skip media queries without blocks | bptato | 2024-01-04 | 1 | -0/+3 |
| | | | | Without this, media queries without a block would crash the buffer. | ||||
* | sheet: fix overflow in addAtRule | bptato | 2023-12-09 | 1 | -1/+1 |
| | | | | It is enough to just take the len of children there. | ||||
* | sheet: fix a correctness issue, misc refactorings | bptato | 2023-12-09 | 1 | -49/+61 |
| | | | | | | | * 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. | ||||
* | reduce new() usage | bptato | 2023-10-25 | 1 | -4/+5 |
| | |||||
* | 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 | -14/+10 |
| | | | | probably insignificant overall | ||||
* | css: handle unknown tag names correctly | bptato | 2023-07-25 | 1 | -1/+1 |
| | | | | | | Instead of grouping all of them into TAG_UNKNOWN, match their tag names. To-do: this implementation is not very efficient. | ||||
* | WIP selector rewrite | bptato | 2023-01-27 | 1 | -19/+18 |
| | | | | pretty slow for some reason | ||||
* | css: fix some bugs and improve cascading a bit | bptato | 2022-12-29 | 1 | -1/+1 |
| | |||||
* | Use more accurate selector terminology | bptato | 2022-08-23 | 1 | -4/+9 |
| | |||||
* | Merge functional and normal pseudo-class selectors | bptato | 2022-08-21 | 1 | -10/+10 |
| | | | | And parse An+B syntax for nth-child/nth-last-child. | ||||
* | Refactor css function selectors a bit | bptato | 2022-08-20 | 1 | -1/+1 |
| | |||||
* | Update CSS tokenizer | bptato | 2022-07-29 | 1 | -2/+1 |
| | | | | It was slightly outdated and in many places incorrect. | ||||
* | Rename conflicting source files | bptato | 2022-05-10 | 1 | -2/+2 |
| | | | | Nim can't really differentiate between them, unfortunately. | ||||
* | Some loader polishing | bptato | 2022-02-09 | 1 | -0/+1 |
| | |||||
* | Optimize :is selector | bptato | 2022-01-30 | 1 | -1/+51 |
| | |||||
* | Remove some unused declarations | bptato | 2022-01-24 | 1 | -1/+0 |
| | |||||
* | Optimize cascading algorithm | bptato | 2022-01-24 | 1 | -2/+98 |
| | |||||
* | Small cascade optimizations | bptato | 2021-12-31 | 1 | -3/+6 |
| | |||||
* | Cascade optimizations, start layout engine rewrite | bptato | 2021-12-29 | 1 | -1/+1 |
| | |||||
* | Implement basic media query support | bptato | 2021-12-27 | 1 | -25/+27 |
| | |||||
* | Refactor buffer rendering procedures | bptato | 2021-12-23 | 1 | -0/+3 |
| | |||||
* | Preparation for at rules, small inline-block fix | bptato | 2021-12-19 | 1 | -0/+46 |