Andreas Kling
a768724270
LibHTML: Make <a> tags blue and underline by default
...
In the future, this should only apply to "a:link", but since we don't
have pseudo-classes yet, all "a" tags will do for now.
2019-09-28 22:57:46 +02:00
Andreas Kling
8271ad40a5
LibHTML: Implement basic support for "text-decoration: underline"
2019-09-28 22:57:46 +02:00
Andreas Kling
62cbaa74f3
LibHTML: Respect the CSS "color" property for text
...
Also remove the color values from the ComputedStyle object and get them
via StyleProperties instead.
At the moment, we only handle colors that Color::from_string() parses.
2019-09-28 22:57:46 +02:00
Andreas Kling
83f643d43c
LibHTML: Make h1 and h2 tags use Pebbleton Bold by default :^)
2019-09-28 19:14:36 +02:00
Sergey Bugaev
8a2beaf52b
LibHTML: Tweak the default CSS style
2019-09-28 18:29:42 +02:00
Sergey Bugaev
6491493e26
LibHTML: Hide debugging output unless HTML_DEBUG is defined
2019-09-28 18:29:42 +02:00
Sergey Bugaev
841ae44392
LibHTML: Implement basic style inheritance
2019-09-28 18:29:42 +02:00
Sergey Bugaev
08c751d130
LibHTML: Add StyleProperties::string_or_fallback()
...
This is an utility to go with the existing length_or_fallback().
2019-09-28 18:29:42 +02:00
Sergey Bugaev
fd0aa5dd43
LibHTML: Get rid of the style tree
...
We now create a layout tree directly from the DOM tree.
This way we don't actually lose text nodes ^)
2019-09-28 18:29:42 +02:00
Andreas Kling
73fdbba59c
AK: Rename <AK/AKString.h> to <AK/String.h>
...
This was a workaround to be able to build on case-insensitive file
systems where it might get confused about <string.h> vs <String.h>.
Let's just not support building that way, so String.h can have an
objectively nicer name. :^)
2019-09-06 15:36:54 +02:00
Andreas Kling
fc43cf929d
LibHTML: Implement basic block height computation
...
..and add vertical box properties to the layout tree dumps.
2019-08-18 08:39:52 +02:00
Andreas Kling
70eca3b500
LibHTML: Finish the block width calculation
...
Also add horizontal box values to the layout tree dump.
2019-08-18 08:39:52 +02:00
Andreas Kling
e423bb4901
LibHTML: A tiny bit of work towards block layout.
2019-07-26 08:05:14 +02:00
Andreas Kling
f88c5860df
LibHTML: Fetch the box edge values needed for block width computation.
2019-07-24 07:34:07 +02:00
Andreas Kling
9526b0e13a
LibHTML: Add InheritStyleValue and InitialStyleValue.
...
These correspond to the 'inherit' and 'initial' CSS values respectively.
2019-07-08 07:15:56 +02:00
Andreas Kling
04b9dc2d30
Libraries: Create top level directory for libraries.
...
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
2019-07-04 16:16:50 +02:00