Update rust-selectors

Update for https://github.com/servo/rust-selectors/pull/37
This commit is contained in:
Simon Sapin 2015-07-17 18:18:39 +02:00
parent 0d7744b198
commit 055a1c5cee
18 changed files with 171 additions and 159 deletions

View file

@ -3,8 +3,8 @@
<head>
<title>:first-child test</title>
<style type="text/css">
html:first-child { background: red; }
html { background: yellow;}
html { background: red;}
html:first-child { background: yellow; }
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; }
div { clear: both; }

View file

@ -3,8 +3,9 @@
<head>
<title>:first-of-type test</title>
<style type="text/css">
/* should not match according to Selectors 3 because html has no parent element */
html:first-of-type { background: red; }
html { background: red; }
/* Should match according to Selectors Level 4 (changed from Level 3) */
html:first-of-type { background: white; }
div > p,
div > div,

View file

@ -3,8 +3,8 @@
<head>
<title>:last-child test</title>
<style type="text/css">
html:last-child { background: red; }
html { background: yellow;}
html { background: red;}
html:last-child { background: yellow; }
p { width: 20px; height: 20px; background: orange; float: left; margin-left: 10px; }
div { clear: both; }

View file

@ -3,8 +3,9 @@
<head>
<title>:last-of-type test</title>
<style type="text/css">
/* should not match according to Selectors 3 because html has no parent element */
html:last-of-type { background: red; }
html { background: red; }
/* Should match according to Selectors Level 4 (changed from Level 3) */
html:last-of-type { background: white; }
div > p,
div > div,

View file

@ -3,8 +3,9 @@
<head>
<title>:nth-child test</title>
<style type="text/css">
/* should not match according to Selectors 3 because html has no parent element */
html:nth-child(1) { background: red; }
html { background: red; }
/* Should match according to Selectors Level 4 (changed from Level 3) */
html:nth-child(1) { background: white; }
div > p { float: left; width: 40px; height: 40px; margin-right: 10px; border: 1px solid black; }
div { clear: both; }

View file

@ -3,8 +3,9 @@
<head>
<title>:nth-last-child test</title>
<style type="text/css">
/* should not match according to Selectors 3 because html has no parent element */
html:nth-last-child(1) { background: red; }
html { background: red; }
/* Should match according to Selectors Level 4 (changed from Level 3) */
html:nth-last-child(1) { background: white; }
div > p { float: left; width: 40px; height: 40px; margin-right: 10px; border: 1px solid black; }
div { clear: both; }

View file

@ -3,8 +3,9 @@
<head>
<title>:nth-last-of-type test</title>
<style type="text/css">
/* should not match according to Selectors 3 because html has no parent element */
html:nth-last-of-type(1) { background: red; }
html { background: red; }
/* Should match according to Selectors Level 4 (changed from Level 3) */
html:nth-last-of-type(1) { background: white; }
div > p,
div > div,

View file

@ -3,8 +3,9 @@
<head>
<title>:nth-of-type test</title>
<style type="text/css">
/* should not match according to Selectors 3 because html has no parent element */
html:nth-of-type(1) { background: red; }
html { background: red; }
/* Should match according to Selectors Level 4 (changed from Level 3) */
html:nth-of-type(1) { background: white; }
div > p,
div > div,

View file

@ -3,8 +3,9 @@
<head>
<title>:only-of-type test</title>
<style type="text/css">
/* should not match according to Selectors 3 because html has no parent element */
html:only-of-type { background: red; }
html { background: red; }
/* Should match according to Selectors Level 4 (changed from Level 3) */
html:only-of-type { background: white; }
div > p,
div > div,