aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/parser/tests
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-06-23 19:56:55 +0200
committerOriol Brufau <obrufau@igalia.com>2023-06-29 11:00:45 +0200
commit6b2bbdd02d88cc45d54e331537c10942b6cde990 (patch)
tree619ad528587e55ab1590f7afd9d129a00056bf70 /components/script/dom/bindings/codegen/parser/tests
parenta725380db0b9fba31993409f7d0f4b2d11ca8f7d (diff)
downloadservo-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