aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
AgeCommit message (Collapse)Author
2024-10-05Add support for more CSS unitsRodrigo Arias Mallo
Implements support for ch, rem, vw, vh, vmin and vmax units of CSS lengths. For now the units relative to the viewport are only computed once, and they won't change when the window is resized, but only when the page is reloaded. See: https://www.toomanyatoms.com/software/mobilized_dillo.html Authored-By: dogma
2024-10-05Define CssLength as struct instead of intRodrigo Arias Mallo
The int type doesn't have a fixed size, and is only guarantee to hold 16 bits. The current implementation assumes a size of at least 32 bits, an uses three bits to encode the type of information stored in the rest. To add more types of lengths we would need to take more bits from the value itself. A simpler approach is just to use a enumeration to take care of the type of length and a union to encapsulate the different lengths values.
2024-08-07Disable CSS messages for nowRodrigo Arias Mallo
Long CSS stylesheets may fill the console output hiding important messages. For now let's disable them, until we improve the mechanism to select which messages should be enabled at runtime.
2024-03-09Use Doxygen comments for C filesRodrigo Arias Mallo
2015-06-10SRDOP: Work on RTFL messages.Sebastian Geerken
2014-12-20Position attributes (top, bottom, left, right) are now signed.Sebastian Geerken
2014-10-03Merge with main repo. (But something is not working yet.)Sebastian Geerken
2014-10-03Added (not implemented) CSS attribute 'overflow'.Sebastian Geerken
2014-09-15Extended CSS parser and dw::core::Style by 'z-index'.Sebastian Geerken
2014-08-24First (since GROWS) work on absolute positions.Sebastian Geerken
2014-08-10trim spacescorvid
...now that floats and grows are in the repo and I won't be making Sebastian's life difficult with a bunch of whitespace changes.
2014-08-02Implemented 'min-width' and 'max-width'.Sebastian Geerken
2014-04-11Negative Werte für 'background-position'; 'none' für 'background-image'.Johannes Hofmann
2014-04-02Merge with main repo.Sebastian Geerken
2014-04-01resolve CSS background-image URLs relative to styleheet URLJohannes Hofmann
2014-03-20Merge with main repo.Sebastian Geerken
2014-03-03fix clang warningJohannes Hofmann
2014-03-01Merge with main repo.Sebastian Geerken
2014-02-15mergeJohannes Hofmann
2014-02-02trim some spacescorvid
2014-01-09some whitespace cleanupsJohannes Hofmann
2013-12-27Removed preprocessor warning.Sebastian Geerken
2013-12-09Merge (large!).Sebastian Geerken
2013-12-02CSS margins can be 'auto'Johannes Hofmann
2013-11-30accept 'auto' only for CSS properties that allow itJohannes Hofmann
Instead of handling the 'auto' value implicitly for all CSS properties that accept lenght types, we now accept it only for specific properties where 'auto' is valid according to CSS 2.1. This fixes an assertion with the following HTML fragment: <div style="background:auto">hello</div>
2013-11-29Typos.Jorge Arellano Cid
2013-10-14Minor cleanup.Sebastian Geerken
2013-10-01Parsing of <background-position> is complete.Sebastian Geerken
2013-09-30Cleaned up Johannes' patch.Sebastian Geerken
2013-09-30New type for <background-position> (incomplete).Johannes Hofmann
2013-09-27<background-position> is now parsed correctly.Sebastian Geerken
2013-09-27Typo (confusing dimensions!).Sebastian Geerken
2013-09-26Handle 'background' correctly (a bit complicated because of ↵Sebastian Geerken
<background-position>).
2013-09-26CSS attribute 'background-position'.Sebastian Geerken
2013-09-25CSS attribute 'background-attachment' (not implemented in dw::core::style).Sebastian Geerken
2013-09-23CSS attribute 'background-repeat'.Sebastian Geerken
2013-09-22Check url in CSS parser.Sebastian Geerken
2013-09-22CSS type <uri> implemented; applied to 'background-image'.Sebastian Geerken
2013-09-20First attempt to integrate 'background-image'.Sebastian Geerken
2013-08-21"clear" attribute, mostly.Sebastian Geerken
2013-06-03Added CSS properties: position, top, bottom, left, right. (Needed for ↵Sebastian Geerken
absolute positions.)
2012-11-17Merge.Sebastian Geerken
2012-11-15ignore empty CSS class or id selectorsJohannes Hofmann
Testcase: <html> <head> <style type=text/css> . {color: red} </style> </head> <body> <div>hello</div> </body> </html>
2012-10-30Merge with http://hg.dillo.org/dilloSebastian Geerken
2012-10-30trim some spacescorvid
2012-09-14Merge of <http://hg.dillo.org/dillo>.Sebastian Geerken
2012-05-26unify use of sizeof() when computing array lengthJohannes Hofmann
Submitted by: 123 <p37sitdu@lavabit.com>
2012-01-21add inline-block to possible display: valuesJohannes Hofmann
2012-01-13fix descendant selector matchingJohannes Hofmann
When matching descendant selectors we need to test all possibilities and not just the first one. While at it refactor CssSelector::match (). Testcase: <html> <head> <style type=text/css> .a > .b .c { font-weight:bold }</style> </head> <body> <div class=a> <div class=b> <div class=b> <div class=c>should be bold</div> </div> </div> </div> </body> </html> Noticed-by: Sebastian Geerken <sgeerken@dillo.org>
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.