aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
AgeCommit message (Collapse)Author
2014-04-01resolve CSS background-image URLs relative to styleheet URLJohannes Hofmann
2014-03-03fix clang warningJohannes Hofmann
2014-02-15mergeJohannes Hofmann
2014-02-02trim some spacescorvid
2014-01-09some whitespace cleanupsJohannes Hofmann
2013-12-27Removed preprocessor warning.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
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-30trim some spacescorvid
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.
2011-10-22text-transform propertycorvid
2011-08-24add support for CSS adjacent sibling selectorsJohannes Hofmann
2011-06-21Eliminated a pack of 22 compiler warnings (gcc-4.6.1 amd64)Jorge Arellano Cid
2011-06-12merge in recent changes from main repocorvid
2011-06-07support !important in style attributesJohannes Hofmann
2010-12-18CssParser::parseImport(): implement media-conditional @import rules.Jeremy Henty
2010-12-18cssparser.cc: move some calls to nextToken().Jeremy Henty
2010-12-18CssParser::parseImport(): call ignoreStatement().Jeremy Henty
2010-12-14border-color: transparentcorvid
2010-11-26minor bracket style normalization for "else" clausesJorge Arellano Cid
2010-11-26Support @media rules.Jeremy Henty
2010-11-21imported patch ignore-unknown-at-rules-1Jeremy Henty
2010-11-21imported patch ignore-unknown-at-rules-0Jeremy Henty
2010-11-15fix bug comment handling of CssParserJohannes Hofmann
The skipString() method of CssParser was eating one char too much in case of a match. This caused e.g. empty comments (/**/) to be misinterpreted. Noticed and tracked down by: Jeremy Henty <onepoint@starurchin.org>
2010-11-09mergeJorge Arellano Cid
2010-11-09css text-indent propertycorvid
thread: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-November/007801.html
2010-10-21imported patch border-collapse-parsingJorge Arellano Cid
2010-10-07CSS part for font-variant: small-caps supportJorge Arellano Cid
(some uppercasing is done but not utf8)
2010-04-20css word-spacing propertycorvid
2010-04-02add CSS_TYPE_LENGTH_PERCENTAGE_NUMBERJohannes Hofmann
* Add an additional CssValueType CSS_TYPE_LENGTH_PERCENTAGE_NUMBER which can be a length, a percentage, or a number without unit. * Numbers without units are represented as CssLength of type CSS_LENGTH_TYPE_NONE. * Properly detect numbers without unit in cases where they are not allowed (see testcase below). For lengths only '0' can be specified without unit. Testcase: <html> <head> <style tyoe="text/css"> div {border: solid black 2px} </style> </head> <body> <!-- correct - border-width should be set to 0 -> no border --> <div style="border-width: 0">foo bar</div> <!-- false - border-width should be left untouched -> 2px border --> <div style="border-width: 40">foo bar</div> <!-- false - border-width should be left untouched -> 2px border --> <div style="border-width: 40 px">foo bar</div> </body> </html>
2010-03-30white-space: pre-wrapcorvid
thread: http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-March/007420.html
2010-02-27trim some spacescorvid