about summary refs log tree commit diff stats
path: root/res/ua.css
Commit message (Collapse)AuthorAgeFilesLines
* ua.css: use padding for lists, not marginbptato2024-04-031-1/+1
| | | | | FF does it this way as well, and it seems sr.ht depends on it being padding instead of margin.
* css: remove caption-side: left, right, fix caption-side: bottombptato2024-03-011-8/+0
| | | | | | | | left/right never really worked correctly, is non-standard, and the only browser that supported it (Firefox) removed it years ago. bottom was adding the table width to its offset instead of the height, that is now fixed.
* ua.css: fix details element displaybptato2024-02-251-3/+3
| | | | no open/closed logic yet, but at least this fixes the display: property
* ua.css: use ANSI yellow for linksbptato2024-02-251-1/+1
| | | | | | | | | This was my original intention, but there wasn't a way to do it until now. The difference is that this respects user-configured color values. (Now that I think of it, it may be better to automatically detect prefers-color-scheme based on the default background color, and then use blue for bright backgrounds and yellow for dark backgrounds. Hmm.)
* Separate ANSI text decoding from main binarybptato2024-02-251-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handling text/plain as ANSI colored text was problematic for two reasons: * You couldn't actually look at the real source of HTML pages or text files that used ANSI colors in the source. In general, I only want ANSI colors when piping something into my pager, not when viewing any random file. * More importantly, it introduced a separate rendering mode for plaintext documents, which resulted in the problem that only some buffers had DOMs. This made it impossible to add functionality that would operate on the buffer's DOM, to e.g. implement w3m's MARK_URL. Also, it locked us into the horribly inefficient line-based rendering model of entire documents. Now we solve the problem in two separate parts: * text/x-ansi is used automatically for documents received through stdin. A text/x-ansi handler ansi2html converts ANSI formatting to HTML. text/x-ansi is also used for .ans, .asc file extensions. * text/plain is a separate input mode in buffer, which places all text in a single <plaintext> tag. Crucially, this does not invoke the HTML parser; that would eat NUL characters, which we should avoid. One blind spot still remains: copiousoutput used to display ANSI colors, and now it doesn't. To solve this, users can put the x-ansioutput extension field to their mailcap entries, which behaves like x-htmloutput except it first pipes the output into ansi2html.
* ua.css: remove inline-block from tt, var, font, u, s, strikebptato2024-02-171-1/+1
| | | | It's inconsistent with other browsers' default stylesheets.
* css: hide noscript tags when scripting is enabledbptato2024-02-131-0/+6
|
* ua.css: add plaintextbptato2023-12-201-1/+1
|
* css: add case-insensitive matchingbptato2023-12-111-7/+7
| | | | Also case-sensitive, but for now that is the same as normal matching...
* ua.css: do not set del, ins display to block; strike delbptato2023-12-011-3/+3
|
* ua.css: add <s>, <strike>bptato2023-10-251-0/+4
|
* fix size for some input typesbptato2023-09-221-1/+2
| | | | | | padToWidth should be called for all input types in InputWithSize. Also, they should be underlined by ua.css.
* ua.css: add parens to rt before and afterbptato2023-08-101-0/+8
| | | | | Forgot to add any replacement for rp after setting it to display: none, so parentheses around ruby text were not being displayed.
* ua.css: add more block elementsbptato2023-07-251-2/+4
| | | | Additions sourced from the HTML standard.
* Add popup menu for select elementbptato2023-07-051-7/+10
| | | | | | | Replaces the weird CSS implementation we have had until now with a searchable popup menu similar to that of w3m. (The previous implementation broke on websites that do not expect <select> to expand on click, had no separate search, and was ugly.)
* res/ua.css: no !important for display: nonebptato2023-01-061-2/+3
| | | | As recommended by the standard.
* ua.css: fix color, css/values: fix globalsbptato2023-01-041-6/+6
|
* ua.css: add counter-reset to ulbptato2023-01-031-0/+1
|
* ua.css: only highlight a[href]bptato2023-01-021-2/+2
|
* Add support for q, fix list-item counter behaviorbptato2022-12-121-0/+9
|
* Add border-collapse, border-spacing; fix fd sending hackbptato2022-12-111-0/+3
| | | | | | 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.
* Support vertical-align on tdbptato2022-12-111-0/+2
|
* Add caption-sidebptato2022-12-111-0/+16
|
* Add textareabptato2022-11-281-0/+5
| | | | Editing is implemented using an external editor (like vi).
* Add support for <button>bptato2022-11-271-0/+4
|
* Fix some table layout issuesbptato2022-11-251-0/+9
|
* Add some quirks mode rules + presentational hintsbptato2022-11-251-12/+20
| | | | Only as a POC for now.
* Fix table cell size calculationbptato2022-11-191-1/+1
|
* Add interactive <select>bptato2022-07-311-11/+15
|
* Implement select element displaybptato2022-07-171-0/+34
| | | | | You can't actually use them yet. But at least they don't flood the screen with options now.
* Fix basic list displaybptato2022-07-151-1/+0
|
* Implement blink tagbptato2022-02-121-0/+4
| | | | with text-decoration: blink.
* Optimize :is selectorbptato2022-01-301-3/+3
|
* Implement formsbptato2022-01-291-5/+32
| | | | | | Note: for now, only input tags are supported. Also the implementation is extremely hacky and needs refactoring... But it works, I think.
* Implement text-align and <center>bptato2022-01-291-0/+4
|
* Implement basics of new layout enginebptato2022-01-181-0/+4
|
* Honestly I'm not sure what I added here...bptato2021-12-211-4/+7
|
* List CSS stuffbptato2021-12-171-2/+10
|
* Better inline block supportbptato2021-12-151-1/+13
| | | | | | Still needs a refactoring of at least the inline processing algorithm to work somewhat correctly. (how that should be done is another question...)
* Do not render text outside of bufferbptato2021-12-151-1/+1
|
* DL support and BR fixesbptato2021-12-141-6/+21
|
* Support all css length unitsbptato2021-12-141-6/+6
|
* Unicode unordered list markersbptato2021-12-141-2/+2
|
* Add lists, function selector fixesbptato2021-12-141-0/+20
|
* Support ::before, ::after pseudo elementsbptato2021-12-131-2/+10
|
* Change configuration format to tomlbptato2021-12-051-0/+94