1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00
serenity/Libraries/LibHTML
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
..
CSS LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
DOM LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
Layout LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
Parser LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
Scripts Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
Dump.cpp LibHTML: Rename LayoutNode::style_properties() to LayoutNode::style() 2019-10-04 15:56:36 +02:00
Dump.h LibHTML: Hide debugging output unless HTML_DEBUG is defined 2019-09-28 18:29:42 +02:00
Frame.cpp LibHTML: Add a Frame class and use it for document layout width 2019-10-04 15:50:04 +02:00
Frame.h LibHTML: Add a Frame class and use it for document layout width 2019-10-04 15:50:04 +02:00
HtmlView.cpp LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
HtmlView.h LibHTML: Add a Frame class and use it for document layout width 2019-10-04 15:50:04 +02:00
install.sh LibHTML: Add install.sh 2019-09-28 18:29:42 +02:00
Makefile Userland+LibHTML: Add the html command 2019-09-28 18:29:42 +02:00
Makefile.host AK: Remove empty files JsonArray.cpp and JsonObject.cpp 2019-10-01 11:24:54 +02:00
Makefile.shared LibHTML: Add support for <body bgcolor="#rrggbb" text="#rrggbb"> 2019-10-04 21:05:52 +02:00
RenderingContext.h LibHTML: Implement rendering 2019-09-28 18:29:42 +02:00
TreeNode.h LibHTML: Add inserted_into() and removed_from() TreeNode callbacks 2019-09-29 17:40:39 +02:00