about summary refs log tree commit diff stats
path: root/src/css
Commit message (Collapse)AuthorAgeFilesLines
* Add support for visibilitybptato2023-06-071-5/+25
|
* Add support for width, height media querybptato2023-06-073-46/+220
|
* Add support for canvas and multipartbptato2023-06-053-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 stringifiersbptato2023-03-101-4/+13
|
* css/match: fix next sibling selector (+)bptato2023-02-131-2/+2
|
* Remove unused variablebptato2023-01-271-1/+0
|
* WIP selector rewritebptato2023-01-274-451/+365
| | | | pretty slow for some reason
* selectorparser: refactor, fix combinator bugsbptato2023-01-201-79/+79
| | | | Fixes universal selectors after a combinator.
* selectorparser: parse comma correctly in combinatorsbptato2023-01-201-0/+3
|
* css/values: remove equalsbptato2023-01-081-32/+0
| | | | it had zero practical use and was annoying anyways
* css/values: add floatbptato2023-01-081-4/+23
| | | | it does nothing...
* css/cascade, layout/engine: add table alignbptato2023-01-082-5/+17
| | | | Also fix margin-left/right: auto, to some extent.
* selectorparser: do not accept invalid selectorsbptato2023-01-071-44/+78
|
* css/cascade: remove scoped sheetsbptato2023-01-072-34/+2
| | | | ...in favor of handling all style elements like other browsers
* css/values, parser, ...: fix background-imagebptato2023-01-062-8/+44
|
* ua.css: fix color, css/values: fix globalsbptato2023-01-041-1/+8
|
* css/values: consistently use exceptionsbptato2023-01-031-56/+41
| | | | | Options are great, but only if used consistently. This also fixes some weird bugs where exceptions were handled incorrectly.
* css/values: remove todobptato2023-01-031-1/+0
|
* dom: add better attribute reflectionbptato2023-01-021-2/+4
| | | | | Instead of creating a new function for each attribute, use a single magic function for reflected attributes.
* selectorparser: support :link, :visitedbptato2023-01-014-7/+22
| | | | I say "support", but :visited is never matched.
* css/values: apply presentational hints after UA stylebptato2023-01-011-4/+5
| | | | | So that e.g. table valign overrides the user-agent vertical-align value, but still respects user/author style.
* cascade: document a bitbptato2023-01-011-2/+7
|
* css/cascade: fix stylesheets not being copied in <head>bptato2022-12-311-1/+3
|
* selectorparser: accept less invalid selectorsbptato2022-12-311-2/+14
|
* css: fix some bugs and improve cascading a bitbptato2022-12-297-18/+78
|
* css/values: fix length shorthand handlingbptato2022-12-281-10/+15
|
* selectorparser: fix pseudo elements on combinator selectorsbptato2022-12-281-2/+5
|
* layout/engine: get rid of dom dependencybptato2022-12-273-23/+73
| | | | Layout should only depend on cascading.
* Implement DOMTokenList, item functions for collectionsbptato2022-12-261-1/+1
|
* Fix broken css color function parsingbptato2022-12-251-31/+49
|
* Add font color presentational hintbptato2022-12-251-0/+6
|
* css/values: fix some incorrectly accepted valuesbptato2022-12-211-18/+29
|
* More DOM workbptato2022-12-193-8/+12
|
* Add JS support to documentsbptato2022-12-181-1/+1
|
* Display text for img tag, background-imagebptato2022-12-164-17/+55
|
* layout/engine: fix a <br> bug that ate inline boxes, add broken ↵bptato2022-12-161-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 chunkbptato2022-12-141-1/+4
| | | | To-do: use decoderstream...
* Fix stream error handling confusion, title displaybptato2022-12-131-2/+5
| | | | Also probably other fixes.
* cssparser: fix a parseAnB bugbptato2022-12-121-1/+1
| | | | Just a typo...
* Fix color contrast correctionbptato2022-12-121-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 CSSComputedValuesbptato2022-12-121-7/+8
|
* Add support for q, fix list-item counter behaviorbptato2022-12-123-25/+154
|
* Add border-collapse, border-spacing; fix fd sending hackbptato2022-12-111-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 alignbptato2022-12-112-1/+11
|
* Support vertical-align on tdbptato2022-12-112-4/+17
|
* Add caption-sidebptato2022-12-111-95/+119
|
* Add support for margin-left/right: autobptato2022-12-111-16/+70
|
* Fix blocking socketstream recv/send, clean up ips/serialize & types/colorbptato2022-12-101-3/+0
| | | | Write always blocks for now, as it's too big of a footgun not to
* css/values: better shorthand handlingbptato2022-12-081-102/+122
|
* Add multiple text-decoration, overline emulationbptato2022-12-071-12/+12
|