Implement XUL crop:clip property value for string cropping #2104

Closed
opened 4 months ago by Moonchild · 1 comments
Owner

See Topic 29423 for lead-up discussion.

The XUL crop:clip extension would allow XUL elements to clip their overflow similar to text-transform:"" CSS. Dev-docs for the crop XUL property are historically wrong stating that crop:none would achieve this, but it actually doesn't, and doesn't crop at all. This should probably be updated as well.

Note:
There's a minor difference between text-overflow:clip and text-overflow:"". The former clips text at the limit of the content area which can happen in the middle of a character, while the latter clips text at a character boundary.

See [Topic 29423](https://forum.palemoon.org/viewtopic.php?f=5&t=29423) for lead-up discussion. The XUL `crop:clip` extension would allow XUL elements to clip their overflow similar to `text-transform:""` CSS. Dev-docs for the `crop` XUL property are historically wrong stating that `crop:none` would achieve this, but it actually doesn't, and doesn't crop at all. This should probably be updated as well. Note: There's a minor difference between `text-overflow:clip` and `text-overflow:""`. The former clips text at the limit of the content area which can happen in the middle of a character, while the latter clips text at a character boundary.
Moonchild changed title from Implement XUL crop:clip attribute for string cropping to Implement XUL crop:clip property value for string cropping 4 months ago

Here's an updated test extension that modifies tab titles to use the "clip" value for cropping their text:

Here's an updated test extension that modifies tab titles to use the "clip" value for cropping their text:
Moonchild closed this issue 4 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MoonchildProductions/UXP#2104
Loading…
There is no content yet.