ladybird/Libraries/LibHTML/CSS
Andreas Kling 9808d35554 LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb">
This patch implements basic support for presentational hints, which are
old-school HTML attributes that affect style.

You add support for a presentational hint attribute by overriding
Element::apply_presentational_hints(StyleProperties&) and setting all
of the corresponding CSS properties as appropriate.

To make the background color fill the entire document, not just the
bounds of the <body> element's LayoutNode, we special-case it in the
HtmlView::paint_event() code for now. I'm not entirely sure what the
nicest solution would be, but I'm sure we'll discover it eventually.
2019-10-04 21:05:52 +02:00
..
.gitignore Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
Default.css LibHTML: Implement the <hr> element 2019-10-01 20:50:11 +02:00
Length.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
LengthBox.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
Selector.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
Selector.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
Specificity.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
StyleDeclaration.cpp LibHTML: Fix incorrect CSS object model 2019-09-30 20:06:17 +02:00
StyleDeclaration.h LibHTML: Fix incorrect CSS object model 2019-09-30 20:06:17 +02:00
StyleProperties.cpp LibHTML: Respect the CSS "color" property for text 2019-09-28 22:57:46 +02:00
StyleProperties.h LibHTML: LayoutText should always use parent's style properties 2019-10-04 12:12:39 +02:00
StyleResolver.cpp LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
StyleResolver.h LibHTML: LayoutText should always use parent's style properties 2019-10-04 12:12:39 +02:00
StyleRule.cpp LibHTML: Fix incorrect CSS object model 2019-09-30 20:06:17 +02:00
StyleRule.h LibHTML: Fix incorrect CSS object model 2019-09-30 20:06:17 +02:00
StyleSheet.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
StyleSheet.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
StyleValue.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
StyleValue.h LibHTML: Prettify ColorStyleValue::to_string() a little bit 2019-10-03 16:12:45 +02:00