aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-05-03 17:53:27 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-05-05 06:36:12 +0200
commit932dc72402905cf9597b864199fd85fdb491c287 (patch)
tree4b93a5172ffc5f8783b1e3e8a53654c484591202 /components/script/lib.rs
parent4e37d07ea4f2bba124f78f17873fbb02c66d1cdb (diff)
downloadservo-932dc72402905cf9597b864199fd85fdb491c287.tar.gz
servo-932dc72402905cf9597b864199fd85fdb491c287.zip
Fix an assertion failure in Layout 2020
The recent changes to containing blocks, exposed an issue in the StyleExt trait: - When deciding whether an element creates a reference frame, whether or not it is a non-replaced inline is taken into account when determining if it has a transform. - When deciding whether an element creates a stacking context for all descendants, whether or not it is a non-replaced inline is *not* taken into account when determining if it has a transform. In both cases, elements that are inline should not be considered to have transforms. This commit fixes that issue as well as making it so that inlines cannot be transformed. Note that is also breaks transforms on replaced elements, but that functionality was fairly half-baked due to the inconsistent determination of transforms.
Diffstat (limited to 'components/script/lib.rs')
0 files changed, 0 insertions, 0 deletions