servo/components/layout_2020
Oriol Brufau 668c4c8aba Round text decoration thickness to >= 1 device pixels
Previously the thickness coming from font metrics could be something
like 0.7px, so with 1dppx it would be painted as either 1 or 0 device
pixels.

Enforcing at least 1 device pixel ensures that the decoration will be
visible, and rounding to an integral amount of device pixels ensures
that the thickness won't vary depending on the position.

The specification requires this behavior when text-decoration-thickness
is set to a length or percentage. It's not clear if it should also
happen by default, but this seems to match other browsers (except for
WebKit rounding up instead of to the nearest integer).

The test text-decoration-thickness-from-zero-sized-font.html is now
failing because of #29675.
2023-04-27 23:48:53 +02:00
..
display_list Round text decoration thickness to >= 1 device pixels 2023-04-27 23:48:53 +02:00
flexbox Fix some typos 2022-12-17 03:22:34 +01:00
flow Fix text-decoration for block containers in layout-2020 2023-04-26 20:44:01 +02:00
tests Use the size of the containing block, not the size of the block formatting 2020-07-22 19:58:28 -07:00
Cargo.toml Bump euclid to 0.22 2023-01-26 08:59:21 +01:00
cell.rs Implement Default for ArcRefCell 2020-03-17 11:15:17 -07:00
context.rs Implement cross origin resource policy check 2020-05-08 19:15:24 +02:00
data.rs Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData 2020-04-06 23:06:13 +02:00
dom_traversal.rs Add support for <iframe> elements for Layout 2020 2023-04-04 17:49:24 +02:00
element_data.rs Flex items in the box tree 2020-06-04 13:19:53 +02:00
formatting_contexts.rs Make a bool for display: list-item available to flow box construction 2020-07-23 16:43:57 +02:00
fragments.rs Add support for <iframe> elements for Layout 2020 2023-04-04 17:49:24 +02:00
geom.rs Add an implementation of the core float and clear placement logic in layout 2020-07-20 12:42:34 -07:00
layout_debug.rs Rename BoxTreeRoot/FragmentTreeRoot to BoxTree/FragmentTree 2020-05-15 13:25:35 +02:00
lib.rs Add layout support for list markers 2020-07-24 09:31:24 +02:00
lists.rs Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
opaque_node.rs Remove layout_2020::display_list, use WebRender display lists instead 2019-09-07 19:38:44 +02:00
positioned.rs Rename ComputedValuesExt::establishes_containing_block 2023-04-20 11:49:28 +02:00
query.rs Fix scrolling from script in Layout 2020 2023-04-25 21:25:01 +02:00
replaced.rs Add support for <iframe> elements for Layout 2020 2023-04-04 17:49:24 +02:00
sizing.rs Parallelize BlockContainer::inline_content_sizes 2020-06-19 15:38:15 +02:00
style_ext.rs Rename ComputedValuesExt::establishes_containing_block 2023-04-20 11:49:28 +02:00
traversal.rs Remove postorder traversal from layout 2020 during styling 2020-04-06 12:40:05 +02:00
wrapper.rs Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData 2020-04-06 23:06:13 +02:00