-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from davidtheclark/strict-default
- Loading branch information
Showing
25 changed files
with
182 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,7 @@ | |
.foobar-Foo_foo | ||
.foobar-Foo_foo:hover {} | ||
.foobar-Foo_foo::after {} | ||
|
||
@media all { | ||
.f-Foo {} | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** @define StrictValidRules */ | ||
|
||
.StrictValidRules { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules:focus { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules.is-active { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules .StrictValidRules--modifier { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules .StrictValidRules--modifier::after { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules-child, | ||
.StrictValidRules-child2 { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules-child:first-child:hover, | ||
.StrictValidRules-child2:nth-child(3)::before { | ||
color: green; | ||
} | ||
|
||
.StrictValidRules.is-active { | ||
color: green; | ||
} | ||
|
||
@keyframes grow { | ||
50% { | ||
transform: scale(1.25); | ||
} | ||
100% { | ||
transform: scale(1); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
var util = require('./test-util'); | ||
var assertSuccess = util.assertSuccess; | ||
var assertFailure = util.assertFailure; | ||
var fixture = util.fixture; | ||
|
||
describe('property validation', function () { | ||
it( | ||
'accepts custom properties that begin with the component name', | ||
function () { | ||
assertSuccess(fixture('properties-valid')); | ||
} | ||
); | ||
|
||
var invDef = '/** @define InvalidRootVars */'; | ||
|
||
it('accepts an empty root', function () { | ||
assertSuccess(invDef + ':root {}'); | ||
}); | ||
|
||
it( | ||
'rejects custom properties that do not being with the component name', | ||
function () { | ||
assertFailure( | ||
invDef + ':root { --invalid-InvalidRootVars-color: green; }' | ||
); | ||
} | ||
); | ||
|
||
it('rejects invalid root properties', function () { | ||
assertFailure(invDef + ':root { color: green; }'); | ||
}); | ||
|
||
it('rejects root selectors grouped with other selectors', function () { | ||
assertFailure(invDef + ':root, .InvalidRootSelector {}'); | ||
}); | ||
}); |
Oops, something went wrong.