mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
This is a followup to #36629, continuing to implement script-based layout queries using the `Fragment`s attached to the `BoxTree`. In this change, geometry queris (apart from parent offset) are calculated using `Fragment`s hanging of the `BoxTree`. In order to make this work, all `Fragment`s for inlines split by blocks, need to be accessible in the `BoxTree`. This required some changes to the way that box tree items were stored in DOM `BoxSlot`s. Now every inline level item can have more than a single `BoxTree` item. These are carefully collected by the `InlineFormattingContextBuilder` -- currently a bit fragile, but with more documentation. Testing: There are tests for these changes. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
33 lines
754 B
INI
Vendored
33 lines
754 B
INI
Vendored
[getBoundingClientRect-shy.html]
|
|
[Range 0-5 should not include the hyphen.]
|
|
expected: FAIL
|
|
|
|
[Range 1-5 should not include the hyphen.]
|
|
expected: FAIL
|
|
|
|
[Range 0-6 should not include the hyphen.]
|
|
expected: FAIL
|
|
|
|
[Range 1-6 should not include the hyphen.]
|
|
expected: FAIL
|
|
|
|
[Range 0-7 should include the hyphen.]
|
|
expected: FAIL
|
|
|
|
[Range 1-7 should include the hyphen.]
|
|
expected: FAIL
|
|
|
|
[Range 0-8 should include the hyphen.]
|
|
expected: FAIL
|
|
|
|
[Range 0-8 should include only the first hyphen.]
|
|
expected: FAIL
|
|
|
|
[Collapsed soft-hyphen should be 0 width.]
|
|
expected: FAIL
|
|
|
|
[Rendered soft-hyphen should have a width.]
|
|
expected: FAIL
|
|
|
|
[Rendered soft-hyphen in a span should have a width.]
|
|
expected: FAIL
|