Valter Kraemer
2a5b488386
fix: empty value attribute selector doesn't produce "Unused CSS selector" warning ( #8122 )
...
Fixes : #8042
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
2 years ago
Tan Li Hau
e2ef2b8731
apply class for dynamic elements ( #7652 )
2 years ago
kindoflew
7e1691cd62
[fix] support @layer ( #7514 )
...
* add test
* add layer to apply check
2 years ago
Yuji Sugiura
a068719208
[fix] do not be over-eager in removing unused CSS for dialog[open] ( #7495 )
3 years ago
Yuichiro Yamashita
e0d93254fd
[feature] Dynamic elements implementation <svelte:element> ( #6898 )
...
Closes #2324
Co-authored-by: Alfred Ringstad <alfred.ringstad@hyperlab.se>
Co-authored-by: Simon Holthausen <simon.holthausen@accso.de>
Co-authored-by: tanhauhau <lhtan93@gmail.com>
3 years ago
Geoff Rich
0a3353b671
[fix] do not collapse whitespace-only css vars ( #7303 )
...
Fixes #7152 , see also #7288
--foo:; used to be an invalid CSS custom property value, while -foo: ; was valid. By collapsing the whitespace in these declaration values, we were breaking scenarios where an empty custom property was desired. The spec was updated to trim whitespace and treat these values identically, but Chromium browsers still treat --foo; as invalid. This was recently fixed and will be released in Chrome 99, but this would still be a good fix to maintain backwards compatibility.
3 years ago
Tan Li Hau
ee769101fc
[fix] applying :global for > combinator ( #6563 )
3 years ago
Tan Li Hau
b23d267f1f
[fix] improper :global() style encapsulation ( #6560 )
3 years ago
Tan Li Hau
c54d57b0d9
don't scope :root selector ( #6514 )
3 years ago
Tan Li Hau
3d1af7fb68
support :global() in compound selector ( #6223 )
4 years ago
Rich Harris
2925a00eff
add cssHash option ( #6026 )
...
* Allow to customize the css scope class
* Pass component name to scope class generator
* Move Stylesheet arguments into an object
* Refactor to cssHash
* Please the almighty linter
* pass hash function to cssHash
* update test
* document cssHash option
Co-authored-by: Christian Kaisermann <christian@kaisermann.me>
4 years ago
Tan Li Hau
e8094df779
fix remove of lone :host selectors ( #5984 )
4 years ago
Tan Li Hau
44f41c9edd
fix :host and :global css scoping ( #5957 )
4 years ago
Andreas Ehrencrona
ddf13211af
Updated to ESLint config 5.4.0 ( #5541 )
4 years ago
Ben McCann
229a16d6e7
upgrade ESLint config ( #5472 )
4 years ago
Ben McCann
0645631b28
Use TypeScript in tests ( #5433 )
4 years ago
Tan Li Hau
3970def5eb
fix sibling combinators with spread attributes ( #5467 )
4 years ago
Tan Li Hau
967b88186b
scope CSS sibling combinators ( #5427 )
4 years ago
Tan Li Hau
b5b02f8561
whitelist [open] attribute selector for <details> ( #5425 )
4 years ago
Tan Li Hau
46d423d9db
fix css specificity for child combinator ( #5399 )
4 years ago
Tan Li Hau
7900e3eafa
fix style scoping with > * ( #5400 )
4 years ago
Antony Jones
82dc26a31c
Fix lint warnings ( #5263 )
4 years ago
Zachiah
0e1345548f
add selector to message of css-unused-selector warning ( #5253 )
4 years ago
Bassam Ismail
fb51dd8f07
add a11y-media-has-caption check ( #5075 )
4 years ago
pushkin
0da70f46b9
handle line ending differences in tests ( #4915 )
5 years ago
Conduitry
be9b79f805
fix detection of unused partially global CSS selectors ( #4332 )
5 years ago
Conduitry
e4460e38ba
fix '~=' and class selectors with arbitrary whitespace ( #4286 )
5 years ago
Tan Li Hau
c0dab9fefb
fix css specificity ( #4146 )
...
Co-authored-by: Almaz <gouffr@gmail.com>
5 years ago
Rich Harris
46fef94a5c
Merge pull request #3866 from tanhauhau/tanhauhau/improve-testing-experience
...
improve testing experience
5 years ago
Tan Li Hau
b22abc7936
fix undefined class with scoped-css
5 years ago
Tan Li Hau
d8b9274697
update test snapshot with --update flag
5 years ago
Tan Li Hau
798a47b1da
feat unused css selector understands string concat
5 years ago
Rich Harris
b59c942e5a
Revert "remove empty value declaration from style tree"
5 years ago
Tan Li Hau
1a476d4580
remove empty value declaration from style tree
5 years ago
Jesse Skinner
b6798e5221
allow multiple ancestors to be scoped with class ( #3544 )
5 years ago
Tan Li Hau
5dbb08d19b
allow solo for test suite ( #3747 )
5 years ago
Rich Harris
b9f14846b0
Structured code generation ( #3539 )
5 years ago
Conduitry
3c5ccf6ee5
rework attribute selector matching to not use regexes ( #1710 )
5 years ago
Christian Kaisermann
b286fdc26b
Support other atrules ( #2995 )
...
* Add test for @page/@import/@charset/@namespace/@font-face
* Add support for declarations inside at-rules
* Quick formatting adjustment
5 years ago
Conduitry
45a54c1aa4
use bindings when matching attribute selector against element ( #3281 )
5 years ago
Rich Harris
8c1f48f828
Merge pull request #3250 from davemo/fix/1705-root-pseudo-selector-prefix-exemption
...
bugfix: exempt the :root psuedo-selector from the random css prefix
5 years ago
David Mosher
1909bb43d9
bugfix: exempt the :root selector from prefix
...
- the change in #1705 introduced a small bug for users who were relying on assigning global CSS variables via the :root selector
- this change adds a small exemption to avoid prefixing :root with the random prefix that svelte adds
5 years ago
pynnl
c33e4be6dc
fix global keyframes with no elements
5 years ago
Rich Harris
bff7dace5b
Merge branch 'gh-3135' of https://github.com/btk5h/svelte into btk5h-gh-3135
5 years ago
Richard Harris
0fd34b1f41
add scoping attribute for pseudo-class selectors without a type/class - fixes #1705
5 years ago
Bryan Terce
f654dd0ae4
Add tests
5 years ago
Richard Harris
234db33eb4
add test for class: directive special characters
5 years ago
Richard Harris
80ce72362b
update css tests
6 years ago
Richard Harris
248f55a574
move warnings out of stats
6 years ago
Richard Harris
3953c2dbfc
error on invalid compiler options — closes #2094
6 years ago