Servo, the embeddable, independent, memory-safe, modular, parallel web rendering engine
Mozilla Public License 2.0
28.46k
stars
3.03k
forks
source link
Alignment should affect size of absolutely positioned element #34248
Open
Loirooriol opened 6 hours ago
The replaced and non-replaced cases can be addressed in different PRs.
The non-replaced case (1st row in testcase) seems simple, currently it always stretches because of https://github.com/servo/servo/blob/3fd1a229df65406699c5795cf504948cdb314320/components/layout_2020/positioned.rs#L849
It should use
Size::FitContent
when the alignment isn'tnormal
orstretch
.