Skip to content

Conversation

@mwcampbell
Copy link
Contributor

This is a first step toward exposing text formatting in the platform APIs. I added all of the text properties that I thought should be inherited from the nearest ancestor that has the property set. I'm not sure if any of the booleans should be inherited. I guess we should also decide on a convention for documenting that a given property is inherited; right now, we only document that on a couple of properties.

Copy link
Member

@DataTriny DataTriny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. With all of these identical methods, have you considered a macro though? We would loose readability but it would make it easier to write unit tests, which is also important.

@DataTriny
Copy link
Member

@mwcampbell You can merge this after running cargo fmt.

@DataTriny DataTriny force-pushed the inherited-text-properties branch from e609932 to 547b342 Compare October 10, 2025 07:32
@DataTriny DataTriny merged commit 0f132ea into main Oct 10, 2025
16 checks passed
@DataTriny DataTriny deleted the inherited-text-properties branch October 10, 2025 07:34
@DataTriny DataTriny mentioned this pull request Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants