Parsing support for the :last-child pseudo class.
This commit is contained in:
1 parent
b4fec3cc8c
commit
7a606a11d3
2 files changed
+24
No files matched your search
@@ -0,0 +1,11 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe Oga::CSS::Parser do
|
||||
context ':last-child pseudo class' do
|
||||
example 'parse the :last-child pseudo class' do
|
||||
parse_css(':last-child').should == parse_xpath(
|
||||
'descendant-or-self::*[count(following-sibling::*) = 0]'
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user