| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
just for consistency
|
|
|
|
|
| |
we just treat them as img tags. lazy, but works suprisingly well -- so
long as the server sends us a Content-Type, anyway.
|
|
|
|
|
| |
it's inefficient and pointless to treat them differently, so just derive
a new enum from TagType with a macro
|
|
|
|
|
|
|
|
|
|
|
| |
The -cha-ansi color type now sets ANSI colors in CSS.
Also, color correction etc. has been improved a bit:
* don't completely reset output state in processFormat for new colors
* defaultColor is now separated from ANSI color type 0
* bright ANSI colors are no longer replaced with bold + dark variant
* replaced ANSI color map to match xterm defaults
|
|
|
|
|
|
|
| |
The `t' field was completely redundant, as it's already included in the
CSSComputedValues index.
+ removed some unused functions
|
|
|
|
|
|
| |
This is required by the standard. (Without this, lots of websites have
incorrect background colors, because they set the body height to 100%
of the viewport.)
|
| |
|
|
|
|
|
| |
We no longer have to wait for the entire document to be loaded to start
loading CSS.
|
| |
|
|
|
|
|
|
|
|
| |
* Update chame to the latest version
* Get rid of nodeType usage
* Add atoms
* Re-implement DOM attributes
* document.write
|
|
|
|
|
|
|
|
| |
* css/cascade: copy stylesheet in applyMediaQuery (so that changes
are reverted on re-style)
* buffer: clear prevstyled in windowChange (to avoid using cached
results from previous cascading passes); set window.attrs
* pager: avoid windowChange if new attrs are identical to the old ones
|
| |
|
| |
|
|
|
|
|
| |
Styled children must be added to their parents *before* they are
styled, because match expects this to hold.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* Break up applyRules into smaller functions
* Do not call calcRules for every child pseudo element separately;
just use parent's DeclarationListMap
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
third time's the charm
|
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
| |
and with that, resolve the unknown input type issue
|
|
|
|
|
|
|
|
|
|
| |
* ips -> io/
* loader related stuff -> loader/
* tempfile -> extern/
* buffer, forkserver -> server/
* lineedit, window -> display/
* cell -> types/
* opt -> types/
|
|
|
|
|
|
| |
* lower-case the input string.
* do not fall back to black on error. (i.e. remove the special cased
parseLegacyColor0 in cascade)
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Operation "modularize Chawan somewhat" part 2
|
|
|
|
| |
probably insignificant overall
|
|
|
|
| |
This fixes interpretation of "@media (min/max-width: 1234px)".
|
|
|
|
| |
Reduces ugly rendering caused by rounding errors.
|
|
|
|
| |
So we don't have to pass each DeclarationList separately.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...)
|
|
|
|
| |
Also fix margin-left/right: auto, to some extent.
|
|
|
|
| |
...in favor of handling all style elements like other browsers
|
|
|
|
|
| |
Instead of creating a new function for each attribute, use a single
magic function for reflected attributes.
|
|
|
|
| |
I say "support", but :visited is never matched.
|
| |
|
| |
|
| |
|
|
|
|
| |
Layout should only depend on cascading.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Instead of just inverting the color and hoping for the best, convert it
to YUV and increase/decrease luminance based on results.
|
| |
|
| |
|