mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix stylo's text-overflow handling to match gecko.
A single value sets the text-overflow on the _end_ of the text, not both start and end.
This commit is contained in:
parent
594479fe15
commit
9f482c1430
3 changed files with 67 additions and 13 deletions
|
@ -710,7 +710,7 @@ impl LineBreaker {
|
|||
let available_inline_size = self.pending_line.green_zone.inline -
|
||||
self.pending_line.bounds.size.inline - indentation;
|
||||
|
||||
let ellipsis = match (&fragment.style().get_text().text_overflow.first,
|
||||
let ellipsis = match (&fragment.style().get_text().text_overflow.second,
|
||||
fragment.style().get_box().overflow_x) {
|
||||
(&longhands::text_overflow::Side::Clip, _) | (_, overflow_x::T::visible) => None,
|
||||
(&longhands::text_overflow::Side::Ellipsis, _) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue