Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

prefix-selectors: add support for :root pseudo-class #136

Merged
merged 1 commit into from Jan 2, 2014

Conversation

Projects
None yet
3 participants
Contributor

TooTallNate commented Jan 2, 2014

In our modular component CSS, we've been having trouble referencing the root
element of our CSS when used in conjunction with the prefixSelectors()
plugin.

A clever solution for this is to re-purpose the :root pseudo-class from
CSS3 to mean "the prefixed selector" when encountered, which would give us
a nice way to reference that root element with a clean semantic syntax.

http://dev.w3.org/csswg/selectors3/#root-pseudo
https://developer.mozilla.org/en-US/docs/Web/CSS/:root

prefix-selectors: add support for :root pseudo-class
In our modular component CSS, we've been having trouble referencing the root
element of our CSS when used in conjunction with the `prefixSelectors()`
plugin.

A clever solution for this is to re-purpose the `:root` pseudo-class from
CSS3 to mean "the prefixed selector" when encountered, which would give us
a nice way to reference that root element with a clean semantic syntax.

jonathanong added a commit that referenced this pull request Jan 2, 2014

Merge pull request #136 from TooTallNate/add/prefix-selectors-root-su…
…pport

prefix-selectors: add support for :root pseudo-class

@jonathanong jonathanong merged commit ae58502 into reworkcss:master Jan 2, 2014

1 check passed

default The Travis CI build passed
Details
Contributor

jonathanong commented Jan 2, 2014

haha don't like special-casing stuff but whatevers

@TooTallNate TooTallNate deleted the TooTallNate:add/prefix-selectors-root-support branch Jan 2, 2014

yeah :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment