Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Update polyfill-next-selector docs for #637 #643

Merged
merged 2 commits into from
Sep 18, 2014
Merged

Conversation

addyosmani
Copy link
Member

Reviewer: @robdodson

This change attempts to revise the polyfill-next-selector docs to only recommend using the feature when doing something that would not work if ::content were removed. As part of this, I've tried to trim down some of the previous examples that focused on the ::content usecase. If I misunderstood what we were aiming for here, feel free to holler.

#637

@robdodson
Copy link
Contributor

LGTM 👍

or as:

polyfill-next-selector { content: ':host > *' }
::content > * { }
Copy link
Contributor

Choose a reason for hiding this comment

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

Lost the :host prefix. That could be confusing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool. Since there are two instances of :host in the snippet above, could you confirm if you're referring to:

  1. :host ::content > * { }
  2. polyfill-next-selector { content: ':host > *' }
  3. Any mention of :host prefix at all :)

Copy link
Contributor

Choose a reason for hiding this comment

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

#3. The rule should match #1, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's supposed to be missing the :host prefix. He's demonstrating how to polyfill ::content > * which is one of the only times you actually need polyfill-next-selector

Copy link
Contributor

Choose a reason for hiding this comment

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

Right you don't need it, but the two examples should probably match. Or change your example to ::content > * { }

@ebidel
Copy link
Contributor

ebidel commented Sep 16, 2014

LGTM. one comment.

@addyosmani
Copy link
Member Author

@ebidel I may well have misinterpreted your feedback, but could you take a look and let me know if further changes are needed?

ebidel added a commit that referenced this pull request Sep 18, 2014
Update polyfill-next-selector docs for #637
@ebidel ebidel merged commit f90b956 into master Sep 18, 2014
@ebidel ebidel deleted the polyfill-next-selector branch September 18, 2014 15:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants