Repository navigation
style: Move float CSS property outside mako - #21139
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @nox (or someone else) soon. |
|
Heads up! This PR modifies the following files:
|
emilio
left a comment
There was a problem hiding this comment.
It looks amazing, thank you!
Let me know if you don't have time for the indentation change, I can do it in a follow-up.
| } | ||
| } | ||
| </%helpers:single_keyword> | ||
| ${helpers.predefined_type("float", "Float", |
There was a problem hiding this comment.
Could we use block indentation for here?
${helpers.predefined_type(
"float",
"Float",
"computed::Float::None",
// ...
)}
The two enums is the right approach, given they have different variants. Tests should be unchanged, since this shouldn't introduce any behavior changes. Pointing at the spec for this should be enough as docs. |
Thanks! :)
No. I will update the PR today. I also want to do |
eaeda32 to
c787181
Compare
emilio
left a comment
There was a problem hiding this comment.
I also want to do clear in the same style. Can I add it to this PR (as a second commit) or in its own PR?
I think its own PR would be better for tracking, and also would allow this one to merge sooner.
|
@bors-servo r+ |
|
📌 Commit c787181 has been approved by |
style: Move `float` CSS property outside mako Hi, I am fairly new to Rust and this is my first contribution to a Rust project. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21130 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ I'm not sure if the approach with the two enums is good. Please let me know if this can be improved. Regarding the tests I'm unsure: `tests/wpt/web-platform-tests/css/css-display/display-contents-float-001.html` seems to fail already before this PR, (and the cause is maybe not related to the style property definition). Also I would like to add some docs, is it allowed to use the descriptions from MDN (https://developer.mozilla.org/en-US/docs/Web/CSS/float). <!-- 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/21139) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt2 |
|
@bors-servo retry
|
|
Sorry closed by accident |
|
Hah, np! @bors-servo r+ |
|
💡 This pull request was already approved, no need to approve it again.
|
|
📌 Commit c787181 has been approved by |
|
@bors-servo retry |
style: Move `float` CSS property outside mako Hi, I am fairly new to Rust and this is my first contribution to a Rust project. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21130 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ I'm not sure if the approach with the two enums is good. Please let me know if this can be improved. Regarding the tests I'm unsure: `tests/wpt/web-platform-tests/css/css-display/display-contents-float-001.html` seems to fail already before this PR, (and the cause is maybe not related to the style property definition). Also I would like to add some docs, is it allowed to use the descriptions from MDN (https://developer.mozilla.org/en-US/docs/Web/CSS/float). <!-- 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/21139) <!-- Reviewable:end -->
|
💔 Test failed - mac-dev-unit |
|
@bors-servo retry
|
style: Move `float` CSS property outside mako Hi, I am fairly new to Rust and this is my first contribution to a Rust project. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21130 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ I'm not sure if the approach with the two enums is good. Please let me know if this can be improved. Regarding the tests I'm unsure: `tests/wpt/web-platform-tests/css/css-display/display-contents-float-001.html` seems to fail already before this PR, (and the cause is maybe not related to the style property definition). Also I would like to add some docs, is it allowed to use the descriptions from MDN (https://developer.mozilla.org/en-US/docs/Web/CSS/float). <!-- 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/21139) <!-- 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 |
MozReview-Commit-ID: 3ocJrRB3jeO
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <[email protected]> MozReview-Commit-ID: EoLK36GMq3d
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <[email protected]> MozReview-Commit-ID: EoLK36GMq3d
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <[email protected]> MozReview-Commit-ID: EoLK36GMq3d
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <[email protected]> MozReview-Commit-ID: EoLK36GMq3d
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <emiliocrisal.io> MozReview-Commit-ID: EoLK36GMq3d UltraBlame original commit: a2bb0089cf1d69cf713913250b89c1b828ab1e77
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <emiliocrisal.io> MozReview-Commit-ID: EoLK36GMq3d UltraBlame original commit: 0486cd62a807989f85459e360f015bdb1b7a0cf1
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <emiliocrisal.io> MozReview-Commit-ID: EoLK36GMq3d UltraBlame original commit: a2bb0089cf1d69cf713913250b89c1b828ab1e77
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <emiliocrisal.io> MozReview-Commit-ID: EoLK36GMq3d UltraBlame original commit: 0486cd62a807989f85459e360f015bdb1b7a0cf1
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <emiliocrisal.io> MozReview-Commit-ID: EoLK36GMq3d UltraBlame original commit: a2bb0089cf1d69cf713913250b89c1b828ab1e77
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <emiliocrisal.io> MozReview-Commit-ID: EoLK36GMq3d UltraBlame original commit: 0486cd62a807989f85459e360f015bdb1b7a0cf1
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <[email protected]> MozReview-Commit-ID: EoLK36GMq3d
Imports servo/servo#21139. Signed-off-by: Emilio Cobos Álvarez <[email protected]> MozReview-Commit-ID: EoLK36GMq3d
Hi, I am fairly new to Rust and this is my first contribution to a Rust project.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsI'm not sure if the approach with the two enums is good. Please let me know if this can be improved.
Regarding the tests I'm unsure:
tests/wpt/web-platform-tests/css/css-display/display-contents-float-001.htmlseems to fail already before this PR, (and the cause is maybe not related to the style property definition).Also I would like to add some docs, is it allowed to use the descriptions from MDN (https://developer.mozilla.org/en-US/docs/Web/CSS/float).
This change is