Skip to content

style: Cleanup a bit the scroll-snap-type properties. - #19018

Merged
bors-servo merged 1 commit into
servo:masterfrom
emilio:scroll-snap
Oct 25, 2017
Merged

bors-servo merged 1 commit into
servo:masterfrom
emilio:scroll-snap

Conversation

@emilio

@emilio emilio commented Oct 25, 2017 •

Copy link
Copy Markdown
Member

Still not perfect, but at least a bit more consistent.


This change is Reviewable

Still not perfect, but at least a bit more consistent.
@highfive highfive assigned ghost Oct 25, 2017
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 25, 2017
@emilio

emilio commented Oct 25, 2017

Copy link
Copy Markdown
Member Author

r? @jdm (or anyone else)

@highfive highfive assigned jdm and unassigned ghost Oct 25, 2017

<% scroll_snap_type_keyword = Keyword("scroll-snap-type", "none mandatory proximity") %>

<% scroll_snap_type_keyword = Keyword("scroll-snap-type", "None Mandatory Proximity") %>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just curious - what's with the title cases?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This generates a Match statement. All this is a mess, I want to rip it off... :)

@emilio emilio Oct 25, 2017 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I didn't remember it auto-capitalized the names, huh :)

Edit: It does not :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That is, before this, the enum variants were actually T::none, T::mandatory, T::proximity, now they have rusty case.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yep, got it 👍

@emilio emilio mentioned this pull request Oct 25, 2017
48 of 49 tasks
"computed::ScrollSnapType::None",
products="gecko",
needs_context=False,
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-type-x)",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: different links?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Meh

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

(I'd rather make the link legible in the source, but if you want, I can change it)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nah, never mind...

@ghost

ghost commented Oct 25, 2017

Copy link
Copy Markdown

LGTM, r=me :)

@emilio

emilio commented Oct 25, 2017

Copy link
Copy Markdown
Member Author

Thanks for taking a look @wafflespeanut!

@bors-servo r=wafflespeanut

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 328f142 has been approved by wafflespeanut

@highfive highfive assigned ghost and unassigned jdm Oct 25, 2017
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 25, 2017
bors-servo pushed a commit that referenced this pull request Oct 25, 2017
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 -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 328f142 with merge ce890be...

@bors-servo

Copy link
Copy Markdown
Contributor

☀️ 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
Approved by: wafflespeanut
Pushing ce890be to master...

@bors-servo
bors-servo merged commit 328f142 into servo:master Oct 25, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 25, 2017
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.

4 participants