diff options
author | Oriol Brufau <obrufau@igalia.com> | 2025-01-16 08:54:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-16 16:54:47 +0000 |
commit | 60dc3b26fb01ac3730475113033c270e95276a69 (patch) | |
tree | 848bb5034c0197d6446b648475307bb3d99517b6 /components/shared/canvas/lib.rs | |
parent | 7e7792dfbdf5af7d447f9d99b915a8b7f4a6e7e9 (diff) | |
download | servo-60dc3b26fb01ac3730475113033c270e95276a69.tar.gz servo-60dc3b26fb01ac3730475113033c270e95276a69.zip |
layout: Allow layouts to customize their used style (#35012)
Some layouts like table need some style overrides. We were handling this
in `ComputedValuesExt`, but it was messy, unreliable and too limited.
For example, we were assuming that a style with `display: table` would
belong to a table wrapper box or table grid box. However, certain HTML
elements can ignore their `display` value and generate a different kind
of box. I think we aren't doing that yet, but we will need this.
Also, resolving the used border of a table needs layout information,
which we don't have in `ComputedValuesExt`. This patch will allow to
improve border collapsing in a follow-up.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/shared/canvas/lib.rs')
0 files changed, 0 insertions, 0 deletions