Natalie Weizenbaum
91b7178e2a
Fix ID equality. ( #99 )
2017-01-13 16:26:03 -08:00
Natalie Weizenbaum
016fe59d1f
Forbid extending across media queries.
2017-01-13 01:53:04 -08:00
Natalie Weizenbaum
354b7e694e
Remove an unnecessary toList() call.
2017-01-13 00:22:06 -08:00
Natalie Weizenbaum
8c4f0bdf81
Fix superselector computation for :not().
2017-01-06 21:31:09 -08:00
Natalie Weizenbaum
beb1a0bd09
Properly handle extended pseudos.
...
There was a logic bug when we created a new selector that injected
extended pseudo-selectors into a previous selector. We would overwrite
the last selector after the original pseudo rather than overwriting the
pseudo itself.
2016-12-29 12:33:12 -08:00
Natalie Weizenbaum
f17edb83d8
Fix an allocation-avoidance case.
...
When extending a selector pseudo, if the selector was unchanged, we
weren't short-circuiting as we should have. This fixes that so now we
avoid allocations unless the selector actually changes.
Closes #81
2016-12-29 12:33:12 -08:00
Natalie Weizenbaum
69762ff0b0
Ignore duplicate extensions.
...
Closes #76
2016-12-20 17:41:21 -08:00
Natalie Weizenbaum
3b6f01be84
Make ExtendSource.extender a plain SelectorList.
...
The span attached to the CssValue wasn't being used.
2016-12-20 17:40:23 -08:00
Natalie Weizenbaum
d5a8a3f725
Fix a few extend issues. ( #75 )
2016-12-19 15:23:14 -08:00
Natalie Weizenbaum
717da0d5bb
Improve the error message for a failed @extend. ( #65 )
2016-12-09 17:29:58 -08:00
Natalie Weizenbaum
f912bb97ac
Fix another @extend bug.
...
We weren't computing parent superselectors correctly.
2016-11-15 00:57:04 -08:00
Natalie Weizenbaum
d1fa5341c9
Fix a bug with superselector calculations.
2016-11-15 00:02:31 -08:00
Natalie Weizenbaum
b9b8e3676f
Fix an extend bug with combinators. ( #43 )
2016-11-13 17:38:14 -08:00
Natalie Weizenbaum
2db0c08b29
Fix more specificity bugs.
2016-10-30 14:45:45 -07:00
Natalie Weizenbaum
468f21f4eb
Track selector sources as specificity.
2016-10-30 14:19:27 -07:00
Natalie Weizenbaum
5ccec2b5be
Fix another bug in _groupSelectors.
2016-10-30 13:59:43 -07:00
Natalie Weizenbaum
43917fe25a
Fix a bug in _groupSelectors.
2016-10-28 14:00:00 -07:00
Natalie Weizenbaum
80055653d9
Match Ruby Sass's source-tracking behavior.
2016-10-22 16:37:51 -07:00
Natalie Weizenbaum
95508b2713
Fix some edge-case-y extend logic.
2016-10-19 21:05:52 -07:00
Natalie Weizenbaum
a515aa1873
Fix an @extend bug.
2016-10-19 18:40:50 -07:00
Natalie Weizenbaum
13156d5107
Disable implicit downcasts.
2016-10-19 17:56:48 -07:00
Natalie Weizenbaum
9751f8e459
Fix a couple extend crashes.
2016-10-18 22:16:12 -07:00
Natalie Weizenbaum
90d9ed03cc
Fix a couple infinite-loop bugs.
2016-10-16 12:09:42 -07:00
Natalie Weizenbaum
4c418603e0
API docs for days.
2016-10-09 23:51:20 -07:00
Natalie Weizenbaum
3e10e24341
Even more API docs.
2016-10-09 20:57:28 -07:00
Natalie Weizenbaum
3a0c5ce09c
More API docs.
2016-10-09 16:36:36 -07:00
Natalie Weizenbaum
9f21fa943e
Make transitive @extend work.
...
Loops are still kind of iffy.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
9d2d8652dc
@extend into pseudo-selectors
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
390d0ac482
Remove another outdated TODO.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
265a4c8946
Preserve newlines through @extend.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
754b1895ac
Add selector-unify().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
a993a7667e
Add selector-replace().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
63ec19f469
Fix a formatting nit.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
f449fa0a98
Fix another extend bug.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
6fc656d260
Fix an extend bug.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
54f4a23d99
Add selector-extend().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
913e81faaa
Remove fixed TODOs.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
202fcad40f
Name all at-rules *Rule.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
da7a58645e
Add a proper exception class.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
987eee5c0a
Support @extend !optional.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
3fb3ae1f3b
Throw if an extend doesn't match.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
7b5f8c7284
Fix an @extend bug.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
f1ce6ea599
Format all code.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
faa86b697c
Make (most) spans mandatory.
...
Arguments are still optional since they may be constructed for
user-defined arguments.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
fcaa696f02
Re-organize AST files.
2016-08-30 15:51:22 -07:00
Natalie Weizenbaum
e58af84cc6
Fix an analysis error.
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
e38d290191
Fix analysis.
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
e0333b303c
Get simple extension working.
2016-08-30 15:51:20 -07:00
Natalie Weizenbaum
69221190e7
Enable @extend.
...
Still tons of runtime errors.
2016-08-30 15:51:20 -07:00
Natalie Weizenbaum
69a431c7bf
Fix all analysis.
2016-08-30 15:51:20 -07:00