Repository navigation
style: Cleanup a bit the scroll-snap-type properties. - #19018
Conversation
Still not perfect, but at least a bit more consistent.
|
r? @jdm (or anyone else) |
|
|
||
| <% scroll_snap_type_keyword = Keyword("scroll-snap-type", "none mandatory proximity") %> | ||
|
|
||
| <% scroll_snap_type_keyword = Keyword("scroll-snap-type", "None Mandatory Proximity") %> |
There was a problem hiding this comment.
Just curious - what's with the title cases?
There was a problem hiding this comment.
This generates a Match statement. All this is a mess, I want to rip it off... :)
There was a problem hiding this comment.
I didn't remember it auto-capitalized the names, huh :)
Edit: It does not :)
There was a problem hiding this comment.
That is, before this, the enum variants were actually T::none, T::mandatory, T::proximity, now they have rusty case.
| "computed::ScrollSnapType::None", | ||
| products="gecko", | ||
| needs_context=False, | ||
| spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-type-x)", |
There was a problem hiding this comment.
(I'd rather make the link legible in the source, but if you want, I can change it)
|
LGTM, r=me :) |
|
Thanks for taking a look @wafflespeanut! @bors-servo r=wafflespeanut |
|
📌 Commit 328f142 has been approved by |
style: Cleanup a bit the scroll-snap-type properties. Still not perfect, but at least a bit more consistent. <!-- 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/19018) <!-- 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 |
Still not perfect, but at least a bit more consistent.
This change is