New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract text emphasis style #20252
Extract text emphasis style #20252
Conversation
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @metajack (or someone else) soon. |
Heads up! This PR modifies the following files:
|
Keyword(KeywordValue), | ||
/// `none` | ||
None, | ||
/// String (will be used only first character) for the text-emphasis-style property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"character" is a bit ambiguous here, because "character" in CSS may have different meaning than that in Rust. It should be "grapheme cluster" instead for better exactness. One may think we can use char
instead if there is only one "character" being used, which is not true, because a grapheme cluster can well include multiple char
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation
Reviewed 7 of 7 files at r1, 2 of 2 files at r2, 1 of 1 files at r3, 1 of 1 files at r4. components/style/properties/shorthand/inherited_text.mako.rs, line 36 at r1 (raw file):
What's the components/style/values/computed/mod.rs, line 78 at r1 (raw file):
components/style/values/computed/text.rs, line 18 at r1 (raw file):
Could you order it alphabetically? components/style/values/computed/text.rs, line 163 at r1 (raw file):
The comment for specified value applies here as well. components/style/values/specified/text.rs, line 530 at r1 (raw file):
This should be Alternatively, you can probably create a nested module to wrap all these types in. components/style/values/specified/text.rs, line 555 at r1 (raw file):
Same issue here. components/style/values/specified/text.rs, line 561 at r1 (raw file):
And here. Comments from Reviewable |
Thanks for your contribution! Please address the review comments. |
57ef675
to
c7c7b4c
Compare
c7c7b4c
to
a1dd888
Compare
Fixed the issues with naming and imports order |
@bors-servo r+ Thanks! |
📌 Commit a1dd888 has been approved by |
…psuper Extract text emphasis style <!-- Please describe your changes on the following line: --> Extracted the text-emphasis-style property out of the inherited_text.mako.rs. This is a part of #19015 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] `./mach cargo-geckolib check` does not report any errors - [X] These changes fix #19940 (github issue number if applicable). <!-- Either: --> - [X] These changes do not require tests because it's a refactoring <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20252) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
Extracted the text-emphasis-style property out of the inherited_text.mako.rs.
This is a part of #19015
./mach build -d
does not report any errors./mach test-tidy
does not report any errors./mach cargo-geckolib check
does not report any errorsThis change is