1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00
ladybird/Userland
Andreas Kling 23a08fd35a LibWeb: Start absolutizing lengths after performing the CSS cascade
Once we've performed the cascade on a set of values for an element,
we should have enough information to resolve/absolutize some lengths.

Basically, any CSS length that isn't "auto" or a percentage can be
turned into an absolute length (in pixels) as long as we have the
following information:

- The viewport rect
- The parent element's font
- The document element's font
- The element's own font

To ensure that we can absolutize lengths relative to the element's own
font, we now do a separate first pass where font-related properties are
defaulted (in the cascade spec sense of the word) and become usable.

There's a lot more work to do here, but this should open up a lot of
simplification in layout code, since it will no longer need to care
about relative lengths. Layout still needs to resolve percentages, since
we can't do that for some properties until the containing block
dimensions are known.
2021-09-24 15:01:49 +02:00
..
Applets LibGUI: Rename CallOnChange => AllowCallback and implement elsewhere 2021-09-22 21:35:42 +02:00
Applications FontEditor: Allow editing new font header 2021-09-24 14:59:39 +02:00
Demos WidgetGallery: Crop animated cursors 2021-09-20 15:59:34 +02:00
DevTools LibGUI: Rename CallOnChange => AllowCallback and implement elsewhere 2021-09-22 21:35:42 +02:00
DynamicLoader Meta: Switch to a SuperBuild that splits host and target builds 2021-09-15 19:04:52 +04:30
Games Breakout: Tag fallthrough statement 2021-09-15 14:22:34 +00:00
Libraries LibWeb: Start absolutizing lengths after performing the CSS cascade 2021-09-24 15:01:49 +02:00
Services WebContent: Pass an empty bitmap object if the pointer is null 2021-09-22 22:10:11 +02:00
Shell Shell: Make ArgsParser not exit on failure in builtin_exit() 2021-09-20 03:31:57 +04:30
Utilities diff: Only color output when stdout is a tty 2021-09-24 14:32:52 +02:00
CMakeLists.txt