Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

added pointer-events to CSS Code Hints #6156

Merged
merged 1 commit into from
Dec 4, 2013

Conversation

calweb
Copy link
Contributor

@calweb calweb commented Dec 3, 2013

No description provided.

@ghost ghost assigned redmunds Dec 4, 2013
@redmunds
Copy link
Contributor

redmunds commented Dec 4, 2013

Looks good. Merging.

redmunds added a commit that referenced this pull request Dec 4, 2013
added pointer-events to CSS Code Hints
@redmunds redmunds merged commit e169aee into adobe:master Dec 4, 2013
@calweb
Copy link
Contributor Author

calweb commented Dec 4, 2013

rock on, Thanks!

@@ -153,6 +153,7 @@
"page-break-inside": {"values": ["auto", "avoid", "inherit"]},
"perspective": {"values": ["none"]},
"perspective-origin": {"values": ["bottom", "center", "left", "right", "top"]},
"pointer-events": {"values": ["auto", "none", "visiblePainted", "visibleFill", "visibleStroke", "visible", "painted", "fill", "stroke", "all", "inherit"]},
Copy link
Contributor

Choose a reason for hiding this comment

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

One small nit: The properties are not alphabetically sorted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh, thanks for catching that. I just added them in order listed on the MDN

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

Would you want me to submit another PR with them alphabetized? I'm happy to do so.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please. All the other properties values are alphabetized.

Copy link
Member

Choose a reason for hiding this comment

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

@TomMalbran Fwiw, I'm pretty sure the order doesn't matter (other than for code cleanliness)... afaict the only place this is consumed is in CssPropHints.getHints(), which sort()s the array before use -- see line 255. (And in the future even that probably won't matter because we'll eventually be re-sorting the results based on StringMatch ranking).

Copy link
Contributor

Choose a reason for hiding this comment

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

But maybe it's easier to see if a propertie value exists when you look for it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we are sorting them to easily find if a property value exists.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants