diff options
author | Oriol Brufau <obrufau@igalia.com> | 2023-06-23 19:56:55 +0200 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-06-29 11:00:45 +0200 |
commit | 6b2bbdd02d88cc45d54e331537c10942b6cde990 (patch) | |
tree | 619ad528587e55ab1590f7afd9d129a00056bf70 /components/script/dom/bindings/codegen/parser/tests | |
parent | a725380db0b9fba31993409f7d0f4b2d11ca8f7d (diff) | |
download | servo-6b2bbdd02d88cc45d54e331537c10942b6cde990.tar.gz servo-6b2bbdd02d88cc45d54e331537c10942b6cde990.zip |
Layout 2020: implement clearance as Option<Length>
Clearance was implemented as a Length, where zero meant no clearance.
However, having a clearance of 0px should be different than having
no clearance, since the former can still prevent margin collapse.
This patch keeps the existing behavior, so it won't be possible to get
a clearance of Some(Length::zero()), but it prepares the terrain for
a follow-up to fix calculate_clearance to return the proper thing.
Diffstat (limited to 'components/script/dom/bindings/codegen/parser/tests')
0 files changed, 0 insertions, 0 deletions