summaryrefslogtreecommitdiff
path: root/src/styleengine.cc
AgeCommit message (Collapse)Author
2024-10-21Don't add border on images with a linkRodrigo Arias Mallo
Some images have the same background color as the page so they don't have a visible border. Always adding a border on images with a link breaks this property. Links continue to be discoverable by hovering with the mouse. Fixes: https://github.com/dillo-browser/dillo/issues/270
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-11Round CSS value after applying zoom levelRodrigo Arias Mallo
When a 1px value is used for the border, any zoom level that makes it smaller makes the resulting size 0, so it disappears. Using round instead leaves more room for zooming out before it disappears. Fixes: https://github.com/dillo-browser/dillo/issues/240
2024-07-27Add SVG support for currentColorRodrigo Arias Mallo
The currentColor special value for the fill and stroke attributes allows an image to follow the same foreground color of the surounding text.
2024-06-25Add support for zoom factorRodrigo Arias Mallo
Allows zooming in and out of pages by changing the size of all elements, including font size, images and tables. The initial zoom is specified in the "zoom_factor" option of dillorc. Use the new shortcuts Ctrl+ and Ctrl- to adjust the zoom of the current page and Ctrl 0 to reset it to 100%. When a new tab or window is opened, the current zoom factor is inherited. Each tab retains its own zoom factor. Fixes: https://github.com/dillo-browser/dillo/issues/21
2024-03-31Add support for the main HTML tagRodrigo Arias Mallo
Fixes: https://github.com/dillo-browser/dillo/issues/109
2015-05-10Merge with main repo.Sebastian Geerken
2015-05-09fix font-size:(larger|smaller)corvid
2015-02-21update some urls in commentscorvid
2014-12-21Merge with main repo.Sebastian Geerken
2014-12-21trim some spacescorvid
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-24Merge with main repo.Sebastian Geerken
2014-09-23don't load background images in --local modeJohannes Hofmann
noticed-by: eocene
2014-09-15Extended CSS parser and dw::core::Style by 'z-index'.Sebastian Geerken
2014-08-02Implemented 'min-width' and 'max-width'.Sebastian Geerken
2014-07-25avoid requesting background images if an ancestor has display:noneJohannes Hofmann
noticed-by: eocene
2014-07-02make dpmm a proper member of StyleEngineJohannes Hofmann
2014-04-09Merge with main repo.Sebastian Geerken
2014-04-07prepare 3.0.4-rc2release-3_0_4-rc2Johannes Hofmann
2014-04-02fix crash and use proper requester URL for CSS imagesJohannes Hofmann
2014-04-02Merge with main repo.Sebastian Geerken
2014-04-01resolve CSS background-image URLs relative to styleheet URLJohannes Hofmann
2014-03-01Merge with main repo.Sebastian Geerken
2014-02-15share user agent style between CssContext'sJohannes Hofmann
2014-02-02trim some spacescorvid
2014-01-06Fixed another memory leak related to background images.Sebastian Geerken
2013-12-09Merge (large!).Sebastian Geerken
2013-11-20Added option "load_background_images" and entry in the tools menu.Sebastian Geerken
2013-10-11Background images for inline elements.Sebastian Geerken
2013-10-07Removed printf.Sebastian Geerken
2013-10-07View(port) background now set by HTML parser.Sebastian Geerken
2013-10-07Cache client is stopped when StyleImage is deleted.Sebastian Geerken
2013-10-01Cleanup.Sebastian Geerken
2013-09-30Cleaned up Johannes' patch.Sebastian Geerken
2013-09-30New type for <background-position> (incomplete).Johannes Hofmann
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-20First attempt to integrate 'background-image'.Sebastian Geerken
2013-09-20Added BrowserWindow and DilloURL (base URL) to StyleEngine::apply and related.Sebastian Geerken
2013-09-06Merge with main repo.Sebastian Geerken
2013-09-05html5 MARK elementcorvid
2013-09-05INS elementcorvid
2013-09-05some html5 structural elementscorvid
The spec also has some rules about how, for instance, a footer can't go inside a header, and that sort of thing, but that can wait until we have something more sophisticated than a collection of IN_* flags.
2013-08-21Merge with main repo.Sebastian Geerken
2013-08-21"clear" attribute, mostly.Sebastian Geerken
2013-08-19New prefs variable "white_bg_replacement".Sebastian Geerken