file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_css_modules/tests/fixture/url/imported.css | CSS | .bar {
background: url('./img-from-imported.png');
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/fixture/url/resolve-extensions.compiled.css | CSS | div {
background: url("./image");
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/fixture/url/resolve-extensions.css | CSS | div {
background: url("./image");
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/fixture/url/url-unresolved.compiled.css | CSS | .__local__class {
background: url('unresolved.png');
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/fixture/url/url-unresolved.css | CSS | .class {
background: url('unresolved.png');
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/fixture/url/url.compiled.css | CSS | @import "./imported.css";
.__local__class {
background: url('./img.png');
}
.__local__class {
background: url("./img.png");
}
.__local__class {
background: url(./img.png);
}
.__local__class {
background: url("./img.png#hash");
}
.__local__class {
background: url("./img.png");
}
.__local__class {
background:... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/fixture/url/url.css | CSS | @import "./imported.css";
.class {
background: url('./img.png');
}
.class {
background: url("./img.png");
}
.class {
background: url(./img.png);
}
.class {
background: url("./img.png#hash");
}
.class {
background: url(
"./img.png"
);
}
.class {
background: green url( './img.png' ) xyz;
}
.class... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/basic/001/input.css | CSS | .class {
color: blue;
& :global foo {
color: red;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/basic/001/output.css | CSS | .__local__class {
color: blue;
}
.__local__class foo {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/basic/002/input.css | CSS | :global(a > b) {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/basic/002/output.css | CSS | a > b {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/001/input.css | CSS | :global(.dark-theme) {
.overlay {
background: rgba(0, 0, 0, 0.8);
}
.content {
background: var(--accents-1);
border: 1px solid var(--accents-2);
}
.input {
&::placeholder {
color: var(--accents-4);
}
~ hr {
--loader-color: var(--accents-4)... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/001/output.css | CSS | .dark-theme {}
.dark-theme .__local__overlay {
background: rgba(0, 0, 0, 0.8);
}
.dark-theme .__local__content {
background: var(--accents-1);
border: 1px solid var(--accents-2);
}
.dark-theme .__local__input {}
.dark-theme .__local__input::placeholder {
color: var(--accents-4);
}
.dark-theme .__local__input ~ ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/002/input.css | CSS | .social {
margin: 0;
padding: 0;
list-style: none;
display: inline-flex;
align-items: center;
li {
display: inline-flex;
margin-right: 15px;
border-right: 1px solid var(--accents-2);
padding-right: 15px;
box-sizing: border-box;
line-height: 0;
&:last-chi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/002/output.css | CSS | .__local__social {
margin: 0;
padding: 0;
list-style: none;
display: inline-flex;
align-items: center;
}
.__local__social li {
display: inline-flex;
margin-right: 15px;
border-right: 1px solid var(--accents-2);
padding-right: 15px;
box-sizing: border-box;
line-height: 0;
}
.__local__social li:last... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/003/input.css | CSS | .suggestionHighlight {
background: var(--geist-highlight-yellow);
/* white text on a yellow background is not readable,
so we need make the highlighted text's color black */
:global(.dark-theme) & {
color: var(--geist-background);
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/003/output.css | CSS | .__local__suggestionHighlight {
background: var(--geist-highlight-yellow);
}
.dark-theme .__local__suggestionHighlight {
color: var(--geist-background);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/004/input.css | CSS | .focusVisible {
background: var(--accents-1);
a:focus {
outline: none;
}
a:focus > div {
outline: none;
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 2px;
text-decoration-color: var(--accents-7);
}
button:focus {
b... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/004/output.css | CSS | .__local__focusVisible {
background: var(--accents-1);
}
.__local__focusVisible a:focus {
outline: none;
}
.__local__focusVisible a:focus > div {
outline: none;
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 2px;
text-decoration-color: var(--accents-7);
}
.__local__focu... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/005/input.css | CSS | .command {
[data-command-list],
ul {
margin: 0;
padding: 0;
list-style-type: none;
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/005/output.css | CSS | .__local__command {}
.__local__command [data-command-list],
.__local__command ul {
margin: 0;
padding: 0;
list-style-type: none;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/006/input.css | CSS | .createTeamModal {
--side-padding: var(--geist-space-8x);
--body-padding-top: 0;
[data-geist-modal-inset] {
margin-left: var(--negative-margin);
}
@media screen and (max-width: 600px) {
--side-padding: var(--geist-space-4x);
header {
border-bottom: 1px solid var(--... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/006/output.css | CSS | .__local__createTeamModal {
--side-padding: var(--geist-space-8x);
--body-padding-top: 0;
}
.__local__createTeamModal [data-geist-modal-inset] {
margin-left: var(--negative-margin);
}
@media screen and (max-width: 600px) {
.__local__createTeamModal {
--side-padding: var(--geist-space-4x);
}
.__local__cr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/007/input.css | CSS | .iconButton {
--icon-rotation: 0deg;
composes: reset from '../utils/reset.module.css';
height: 30px;
color: var(--accents-3);
&:hover:not(:disabled) {
color: var(--geist-foreground);
}
&:disabled {
cursor: not-allowed;
}
&[data-open='true'] {
--icon-rota... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/007/output.css | CSS | .__local__iconButton {
--icon-rotation: 0deg;
height: 30px;
color: var(--accents-3);
}
.__local__iconButton:hover:not(:disabled) {
color: var(--geist-foreground);
}
.__local__iconButton:disabled {
cursor: not-allowed;
}
.__local__iconButton[data-open='true'] {
--icon-rotation: 180deg;
}
.__local__iconButton... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/008/input.css | CSS | .message {
margin-top: -1px;
width: 100%;
opacity: 1;
height: 100%;
transition: opacity 0.4s ease;
word-break: break-word;
span,
div,
blockquote,
h1,
h2,
h3,
h4,
h5,
h6,
label,
legend,
p,
q,
small,
strong {
color: inherit;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/008/output.css | CSS | .__local__message {
margin-top: -1px;
width: 100%;
opacity: 1;
height: 100%;
transition: opacity 0.4s ease;
word-break: break-word;
}
.__local__message span,
.__local__message div,
.__local__message blockquote,
.__local__message h1,
.__local__message h2,
.__local__message h3,
.__local__message h4,
._... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/010/input.css | CSS | .quickstart .buttons :global(> *) {
color: red
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with-compat/vercel/010/output.css | CSS | .__local__quickstart .__local__buttons > * {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_modules/tests/with_compat.rs | Rust | //! Tests ported from https://github.com/thysultan/stylis.js
//!
//! License is MIT, which is original license at the time of copying.
//! Original test authors have copyright for their work.
#![deny(warnings)]
#![allow(clippy::needless_update)]
use std::path::PathBuf;
use swc_atoms::Atom;
use swc_css_ast::Stylesheet... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/benches/compare.rs | Rust | extern crate swc_malloc;
use codspeed_criterion_compat::{black_box, criterion_group, criterion_main, Bencher, Criterion};
use swc_common::{comments::SingleThreadedComments, input::StringInput, FileName, Span, DUMMY_SP};
use swc_css_ast::Stylesheet;
use swc_css_parser::{lexer::Lexer, parser::Parser};
use swc_css_visit:... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/benches/files/bootstrap_5_1_3.css | CSS | @charset "UTF-8";
/*!
* Bootstrap v5.1.3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
:root {
--bs-blue: #0d6efd;
--bs-indigo: #6610f2;
--bs-purple: #6f42c1;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/benches/files/foundation_6_7_4.css | CSS | @charset "UTF-8";
/**
* Foundation for Sites
* Version 6.7.4
* https://get.foundation
* Licensed under MIT Open Source
*/
@media print, screen and (min-width: 40em) {
.reveal, .reveal.tiny, .reveal.small, .reveal.large {
right: auto;
left: auto;
margin: 0 auto; } }
/*! normalize.css v8... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/benches/files/tailwind_3_1_1.css | CSS | /* ! tailwindcss v3.1.1 | MIT License | https://tailwindcss.com */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/benches/lexer.rs | Rust | extern crate swc_malloc;
use codspeed_criterion_compat::{black_box, criterion_group, criterion_main, Bencher, Criterion};
use swc_common::{input::StringInput, FileName};
use swc_css_parser::lexer::Lexer;
fn bench_stylesheet(b: &mut Bencher, src: &'static str) {
let _ = ::testing::run_test(false, |cm, _| {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/benches/parser.rs | Rust | extern crate swc_malloc;
use codspeed_criterion_compat::{black_box, criterion_group, criterion_main, Bencher, Criterion};
use swc_common::{input::StringInput, FileName};
use swc_css_parser::{lexer::Lexer, parser::Parser};
fn bench_stylesheet(b: &mut Bencher, src: &'static str) {
let _ = ::testing::run_test(false,... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/scripts/instruemnt/bench-lexer.sh | Shell | #!/usr/bin/env bash
set -eu
export RUST_LOG=off
export MIMALLOC_SHOW_STATS=1
cargo profile instruments --release -t time --features swc_common/concurrent --bench lexer -- --bench --color $@ | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/scripts/instruemnt/bench-parser.sh | Shell | #!/usr/bin/env bash
set -eu
export RUST_LOG=off
# export MIMALLOC_SHOW_STATS=1
cargo profile instruments --release -t time --features swc_common/concurrent --bench parser -- $@ | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/error.rs | Rust | use std::borrow::Cow;
use swc_atoms::Atom;
use swc_common::{
errors::{DiagnosticBuilder, Handler},
Span,
};
/// Size is same as a size of a pointer.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Error {
inner: Box<(Span, ErrorKind)>,
}
impl Error {
pub fn kind(&self) -> &ErrorKind {
&self... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/lexer/mod.rs | Rust | use std::{borrow::Cow, cell::RefCell, char::REPLACEMENT_CHARACTER, rc::Rc};
use swc_atoms::{Atom, AtomStoreCell};
use swc_common::{
comments::{Comment, CommentKind, Comments},
input::Input,
util::take::Take,
BytePos, Span,
};
use swc_css_ast::{
matches_eq_ignore_ascii_case, DimensionToken, NumberTy... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/lib.rs | Rust | #![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(unused_must_use)]
#![deny(clippy::all)]
#![allow(clippy::needless_return)]
#![allow(clippy::nonminimal_bool)]
#![allow(clippy::wrong_self_convention)]
use swc_common::{comments::Comments, input::StringInput, SourceFile};
use crate::{
error::Error,
lexer::Lexer,
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/macros.rs | Rust | macro_rules! tok {
("number") => {
swc_css_ast::Token::Number { .. }
};
("dimension") => {
swc_css_ast::Token::Dimension { .. }
};
("percentage") => {
swc_css_ast::Token::Percentage { .. }
};
("function") => {
swc_css_ast::Token::Function { .. }
};
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/at_rules/mod.rs | Rust | use swc_common::{Span, Spanned};
use swc_css_ast::*;
use super::{input::ParserInput, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
parser::{values_and_units::is_math_function, BlockContentsGrammar, Ctx},
Parse,
};
impl<I> Parser<I>
where
I: ParserInput,
{
pub(super) fn parse_at_rule_pr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/input.rs | Rust | use std::{borrow::Cow, cell::RefCell, fmt::Debug, mem::take, rc::Rc};
use swc_atoms::{Atom, AtomStore};
use swc_common::{BytePos, Span, Spanned};
use swc_css_ast::{ComponentValue, FunctionName, ListOfComponentValues, Token, TokenAndSpan};
use super::PResult;
use crate::error::{Error, ErrorKind};
pub trait ParserInpu... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/macros.rs | Rust | macro_rules! span {
($parser:expr, $start:expr) => {{
let last_pos = $parser.input.last_pos();
swc_common::Span::new($start, last_pos)
}};
}
macro_rules! tok_pat {
(Ident) => {
swc_css_ast::Token::Ident { .. }
};
(Percentage) => {
swc_css_ast::Token::Percentage { ..... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/mod.rs | Rust | use std::mem::take;
use serde::{Deserialize, Serialize};
use swc_css_ast::*;
use self::input::{Buffer, ParserInput};
use crate::{error::Error, Parse};
#[macro_use]
mod macros;
mod at_rules;
pub mod input;
mod selectors;
mod syntax;
#[cfg(test)]
mod tests;
mod util;
mod values_and_units;
pub type PResult<T> = Result... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/selectors/mod.rs | Rust | use swc_atoms::Atom;
use swc_common::{BytePos, Span, Spanned};
use swc_css_ast::*;
use super::{input::ParserInput, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
parser::Ctx,
Parse,
};
impl<I> Parse<SelectorList> for Parser<I>
where
I: ParserInput,
{
fn parse(&mut self) -> PResult<Selec... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/syntax/mod.rs | Rust | use swc_common::{BytePos, Span, Spanned};
use swc_css_ast::*;
use super::{input::ParserInput, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
parser::{BlockContentsGrammar, Ctx},
Parse,
};
impl<I> Parse<Stylesheet> for Parser<I>
where
I: ParserInput,
{
fn parse(&mut self) -> PResult<Styl... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/tests.rs | Rust | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | ||
crates/swc_css_parser/src/parser/util.rs | Rust | use std::ops::{Deref, DerefMut};
use swc_common::{Span, Spanned, DUMMY_SP};
use swc_css_ast::*;
use super::{
input::{Input, InputType, ParserInput},
Ctx, Error, PResult, Parse, Parser,
};
use crate::{error::ErrorKind, parser::BlockContentsGrammar};
impl<I> Parser<I>
where
I: ParserInput,
{
/// Origin... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/parser/values_and_units/mod.rs | Rust | use swc_atoms::Atom;
use swc_common::{BytePos, Span};
use swc_css_ast::*;
use super::{input::ParserInput, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
Parse,
};
impl<I> Parser<I>
where
I: ParserInput,
{
pub(super) fn parse_generic_values(&mut self) -> PResult<Vec<ComponentValue>> {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/src/tests.rs | Rust | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | ||
crates/swc_css_parser/tests/fixture.rs | Rust | #![deny(warnings)]
#![allow(clippy::needless_update)]
use std::{path::PathBuf, rc::Rc};
use swc_common::{
comments::SingleThreadedComments, errors::Handler, input::SourceFileInput, Span, Spanned,
};
use swc_css_ast::*;
use swc_css_parser::{
lexer::Lexer,
parse_input,
parser::{
input::{InputTyp... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/charset/invalid/input.css | CSS | @charset 'iso-8859-15'; /* Invalid, wrong quoting style used */
@charset "UTF-8"; /* Invalid, more than one space */
@charset "UTF-8"; /* Invalid, there is a character (a space) before the at-rule */
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/charset/valid/input.css | CSS | @charset "utf-8";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/color-profile/input.css | CSS | @color-profile --fogra39 {
src: url('https://example.org/Coated_Fogra39L_VIGC_300.icc');
}
@color-profile device-cmyk {
src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc');
}
@color-profile DEVICE-CMYK {
src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coate... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/container/input.css | CSS | @container (width <= 150px) {
#inner {
background-color: skyblue;
}
}
@supports (container-type: size) {
@container ( width <= 150px ) {
#inner {
background-color: skyblue;
}
}
}
@container not (width <= 500px ) {
#inner {
background-color: skyblue;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/counter-style/input.css | CSS | @counter-style thumbs {
system: cyclic;
symbols: "\1F44D";
suffix: " ";
}
ul {
list-style: thumbs;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/custom-media/input.css | CSS | @custom-media --modern (color), (hover);
@custom-media --modern true;
@custom-media --modern false;
@custom-media --mq-a (max-width: 30em), (max-height: 30em);
@custom-media --mq-b screen and (max-width: 30em);
@custom-media --not-mq-a not all and (--mq-a);
@custom-media --circular-mq-a (--circular-mq-b);
@custom-media... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/document/input.css | CSS | @document url("https://www.example.com/") {
h1 {
color: green;
}
}
@document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
body {
color: purple;
background: yellow;
}
}
@document url(https... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/font-face/input.css | CSS | @font-face {
font-family: "Open Sans";
src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/font-feature-values/input.css | CSS | @font-feature-values "Otaru Kisa" {
@annotation { circled: 1; black-boxed: 3; }
}
@font-feature-values Otaru {
@annotation { circled: 1; black-boxed: 3; }
}
@font-feature-values Otaru Kisa {
@annotation { circled: 1; black-boxed: 3; }
}
@font-feature-values Taisho Gothic {
@annotation { boxed: 1; cir... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/font-palette-values/input.css | CSS | @font-palette-values --SelectedPalette {
font-family: MyVectorColorFont;
base-palette: 3;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/import/input.css | CSS | @import url("./style.css");
@import url('./style.css');
@import url(./style.css);
@import './style.css';
@import "./style.css";
@IMPORT url("./style.css");
@import URL(./style.css);
@import URL("./style.css");
@import"test.css";
@import "common.css" screen;
@import url('landscape.css') screen and (orientation:landscape... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/keyframe/input.css | CSS | @keyframes foo { /* ... */ }
@keyframes "foo" { /* ... */ }
@keyframes foo { /* ... */ }
@keyframes slidein {
from {
transform: translateX(0%);
}
to {
transform: translateX(100%);
}
}
@keyframes identifier {
0% { top: 0; left: 0; }
30% { top: 50px; }
68%, 72% { left:... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/layer/input.css | CSS | @layer framework, override , foo , bar.baz ;
@layer override {
@keyframes slide-left {
from { translate: 0; }
to { translate: -100% 0; }
}
}
@layer framework {
@keyframes slide-left {
from { margin-left: 0; }
to { margin-left: -100%; }
}
}
.sidebar { animation:... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/media/input.css | CSS | @\media screen {}
@\media \screen {}
@media all {}
@media screen {}
@media print {}
@media screen and (color) {}
@media screen and (color), projection and (color) {}
@media screen and ( color ) , projection and ( color ) {}
@media print and (min-resolution: 118dpcm) {}
@media all {}
@... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/namespace/input.css | CSS | @namespace empty "";
@namespace "";
@namespace url(http://www.w3.org/1999/xhtml);
@namespace url("http://www.w3.org/1999/xhtml");
@namespace svg url(http://www.w3.org/2000/svg);
@namespace svg url("http://www.w3.org/2000/svg");
@namespace "http://www.w3.org/1999/xhtml";
@namespace svg "http://www.w3.org/2000/svg";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/nest/input.css | CSS | .foo {
color: red;
@nest & > .bar {
color: blue;
}
}
.foo {
color: red;
@nest .parent & {
color: blue;
}
}
.foo {
color: red;
@nest :not(&) {
color: blue;
}
}
.foo {
color: blue;
@nest .bar & {
color: red;
&.baz {
color:... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/page/input.css | CSS | @page{ }
@page{}
@page{margin: 1cm}
@page {margin: 1cm}
@page {margin: 1cm;}
@page :first {margin: 2cm}
@page :first {margin: 2cm;}
@page :first{margin: 2cm;}
@page {}
@page :left {}
@page :right {}
@page LandscapeTable {}
@page CompanyLetterHead:first {} /* identifier and pseudo page. */
@page:first {}
@page toc, ind... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/property/input.css | CSS | @property --my-color {
syntax: '<color>';
inherits: false;
initial-value: #c0ffee;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/scope/basic/input.css | CSS | @scope {
/* Only match links inside a light-scheme */
a {
color: darkmagenta;
}
}
@scope (.light-scheme) {
/* Only match links inside a light-scheme */
a {
color: darkmagenta;
}
}
@scope to (.content > *) {
img {
border-radius: 50%;
}
.content {
p... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/scope/chromium/input.css | CSS | /* https: //chromium-review.googlesource.com/c/chromium/src/+/4629290 */
@scope (.a) {
@container (width > 0px) {
:scope {
z-index: 1;
}
.b {
background-color: green;
}
}
}
@scope (.a) {
/* The theme layer wins over the base layer. Note that @layer s... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/scope/wpt/input.css | CSS | @scope (#inner) {
@keyframes --my-anim {
to {
background-color: rgb(0, 0, 255);
}
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/starting-style/input.css | CSS | @starting-style {
h1 {
background-color: transparent;
}
@layer foo {
div {
height: 100px;
}
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/supports/input.css | CSS | @supports (display: grid) {
div {
display: grid;
}
}
@supports (display: flex) {
body {
color: blue;
}
@media screen and (min-width: 900px) {
article {
display: flex;
}
}
}
@supports ( display : flex ) {}
@supports not (display: flex) {}
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/at-rule/unknown/input.css | CSS | @unknown;
@unknown x y;
@unknown "blah";
@unknown \"blah\";
@unknown /*test*/;
@unknown /*test*/x/*test*/ y;
@unknown ;
@unknown x y;
@unknown {}
@\unknown {}
@unknown a b {}
@unknown {p:v}
@unknown x y {p:v}
@unknown x, y x(1) {p:v}
@unknown x, y x(1+2) {p:v}
@unknown/*test*/{/*test*/p/*test*/:/*test*/v/*test*/}
@... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/bom/input.css | CSS | a {
color: red;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/cdo-and-cdc/input.css | CSS | <!---->
<!-- -->
<!-- .foo { color: red } -->
div {
color: red;
}
<!--
.class {
color: red;
}
-->
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/comment/input.css | CSS | /* comment */a/* comment */
{
/* comment */color/* comment */:/* comment */red/* comment */;
}
/* a { color: black } */
/**/
/* */
div {
/* inside */
color: black;
/* between */
background: red;
/* end */
}
/* b */
a {
color: black;
/* c */
}
@media/* comment */screen/* comment */{}
@medi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/dashed-ident/input.css | CSS | :root {
--main-color: #06c;
--accent-color: #006;
}
.foo {
--fg-color: blue;
}
#foo h1 {
color: var(--main-color);
}
@--custom {}
@--library1-custom {}
.class {
--vendor-property: --vendor-function("test");
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/declaration-list/input.css | CSS | @font-face {
prop1: value;
prop2: value;
}
@font-face {
prop1: value;
;;;;;
prop2: value;
}
@font-face {;;
prop1: value;;
}
@font-face {
prop1: value
}
@font-face {
prop1: value;;;prop2: value
}
@font-face {
prop1: value;;;prop2: value;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/declaration/input.css | CSS | div {
prop: value;
prop: (value);
prop: {value};
prop: [value];
prop: fn(value);
prop: fn(value)fn(value);
prop: value, value;
prop: value ,value;
prop: value,value;
prop: value , value;
prop: 100%100%;
prop: "string""string";
prop: #ccc#ccc;
prop: url(value)url(v... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/delim/backslash/input.css | CSS | a {
color: \\ red \\ blue;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/dimension/basic/input.css | CSS | a {
prop: 10px;
prop: .10px;
prop: 12.34px;
prop: 0000.000px;
prop: 1px\\9;
prop: 1e;
prop: 1unknown;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/function/calc/input.css | CSS | :root {
font-size: calc(100vw / 35);
}
div {
--width: calc(10% + 30px);
width: calc(0px);
line-height: calc(0);
line-height: calc(2 + 3 * 4);
line-height: calc((2 + 3) * 4);
line-height: calc(-5 * 0);
width: calc((100px + 100px));
width: calc( ( 100px + 100px ) );
w... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/function/element/input.css | CSS | a {
background: element(#css-source) no-repeat;
background: element(var(--foo)) no-repeat;
background: -moz-element(#css-source) no-repeat;
background: -moz-element(var(--foo)) no-repeat;
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/function/linear-gradient/input.css | CSS | a {
background: linear-gradient(white, gray);
background: linear-gradient(yellow, blue);
background: linear-gradient(to bottom, yellow, blue);
background: linear-gradient(180deg, yellow, blue);
background: linear-gradient(to top, blue, yellow);
background: linear-gradient(to bottom, yellow 0%, b... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/function/mix/input.css | CSS | div {
/* mix( [ <timeline> && [ by <easing-function> ]? ] ; <start-value> ; <end-value>) */
opacity: mix( 70% by ease ; 0% ; 100% );
opacity: mix(70%;0%;100%);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/function/unknown/input.css | CSS | div {
prod: fn(100px);
prod: --fn(100px);
prod: --fn--fn(100px);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/function/url/input.css | CSS | a {
background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
background-image: url("./image (1).jpg");
background-image: url('./image (1).jpg');
background-image: URL('./image (1).jpg');
background-image: url( './image (1).jpg');
background-image: ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/function/var/input.css | CSS | div {
color: var(--a);
color: var(--a,);
color: var(--a, blue);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/hacks/input.css | CSS | html > /**/ body .selector {}
head ~ /**/ body .selector {}
.selector { _property: value; }
.selector { -property: value; }
.selector { property: value\9; }
.selector { property/*\**/: value\9; }
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/hex-colors/input.css | CSS | a {
color: #000000;
color: #ffffff;
color: #FFFFFF;
color: #0000ffcc;
color: #0000FFCC;
color: #000;
color: #fff;
color: #FFF;
color: #0000;
color: #ffff;
color: #FFFF;
color: #1;
color: #FF;
color: #123456789;
color: #abc;
color: #aa\61;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/important/basic/input.css | CSS | .a {
prop: important;
color: red important;
width: 1px!important;
color: red!important;
color: red !important;
color: red !important;
color: red ! important ;
color: blue !IMPORTANT;
color: white ! IMPORTANT ;
margin: 10px ! important;
padding: 20px ! ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/issue-8461/1/input.css | CSS | .foo:global(.bar).baz {} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/issue-8461/2/input.css | CSS | .foo :global(.bar).baz {} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/number/input.css | CSS | div {
property: 10;
property: +10;
property: -10;
property: 0.1;
property: +0.1;
property: -0.1;
property: -.1;
property: +.1;
property: 0;
property: 10;
property: .10;
property: 12.34;
property: 0.1;
property: 1.0;
property: 0.0;
property: +0.0;
prope... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/only/1/input.css | CSS | @media screen and (-webkit-min-device-pixel-ratio:0) {
.gradientWrapper {
-chrome-: only(; z-index: 10;);
}
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_parser/tests/fixture/pack-2579/input.css | CSS | @import'nprogress/nprogress.css' | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.