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_config/src/config_types/option.rs | Rust | use serde::{Deserialize, Serialize};
use crate::merge::Merge;
/// You can create this type like `Some(...).into()` or `None.into()`.
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct MergingOption<T>(Option<T>)
where
T: Merge + Default;
impl<T> MergingOption<T>
where
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config/src/lib.rs | Rust | //! Configuration for swc
pub mod config_types;
pub mod merge;
mod module;
#[cfg(feature = "sourcemap")]
mod source_map;
pub use swc_cached::{regex::CachedRegex, Error};
pub use crate::module::IsModule;
#[cfg(feature = "sourcemap")]
pub use crate::source_map::*;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config/src/merge.rs | Rust | use std::{collections::HashMap, path::PathBuf};
use indexmap::IndexMap;
pub use swc_config_macro::Merge;
/// Deriavable trait for overrding configurations.
///
/// Typically, correct implementation of this trait for a struct is calling
/// merge for all fields, and `#[derive(Merge)]` will do it for you.
pub trait Mer... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config/src/module.rs | Rust | use std::fmt;
use serde::{
de::{Unexpected, Visitor},
Deserialize, Deserializer, Serialize, Serializer,
};
use crate::merge::Merge;
#[derive(Clone, Debug, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum IsModule {
Bool(bool),
Unknown,
}
impl Default for IsModule {
fn default() -> Self {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config/src/source_map.rs | Rust | use std::sync::Arc;
use anyhow::{bail, Context, Result};
use serde::{Deserialize, Serialize};
use sourcemap::{vlq::parse_vlq_segment, RawToken, SourceMap};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum SourceMapContent {
Json(String),
#[serde(rename_all = "camelCase")]
Parsed... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config/tests/config_types.rs | Rust | use serde_json::Value;
use swc_config::config_types::BoolConfig;
fn bool_config(v: Value) -> BoolConfig<false> {
serde_json::from_value(v).unwrap()
}
#[test]
fn test_bool_config_serde() {
assert_eq!(bool_config(Value::Null), BoolConfig::new(None));
assert_eq!(bool_config(Value::Bool(true)), BoolConfig::n... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config/tests/derive_merge.rs | Rust | use swc_config::merge::Merge;
#[derive(Merge)]
struct Fields {
a: Option<()>,
}
#[test]
fn test_fields() {
let mut fields = Fields { a: None };
fields.merge(Fields { a: Some(()) });
assert_eq!(fields.a, Some(()));
}
#[derive(Merge)]
struct Tuple(Option<()>);
#[test]
fn test_tuple() {
let mut tup... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config_macro/src/lib.rs | Rust | extern crate proc_macro;
mod merge;
#[proc_macro_derive(Merge)]
pub fn derive_merge(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
let input = syn::parse(input).expect("failed to parse input as DeriveInput");
self::merge::expand(input).into()
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_config_macro/src/merge.rs | Rust | use proc_macro2::TokenStream;
use quote::{quote, ToTokens};
use swc_macros_common::{access_field, join_stmts};
use syn::{parse_quote, DeriveInput, Expr, Field, Fields, Stmt, Token};
pub fn expand(input: DeriveInput) -> TokenStream {
match &input.data {
syn::Data::Struct(s) => {
let body = call_... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/build.rs | Rust | use std::{
env,
fs::File,
io::{BufWriter, Write},
path::Path,
};
use vergen::{CargoBuilder, Emitter};
// Validate conflict between host / plugin features
#[cfg(all(
feature = "ecma_plugin_transform",
any(
feature = "plugin_transform_host_native",
feature = "plugin_transform_hos... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/src/__diagnostics.rs | Rust | // This is auto-generated when publish.
// A fallback semver version set via cargo build script.
pub(crate) static PKG_SEMVER_FALLBACK: &str =
include_str!(concat!(env!("OUT_DIR"), "/core_pkg_version.txt"));
pub(crate) static GIT_SHA: &str = "dev";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/src/lib.rs | Rust | #![cfg_attr(docsrs, feature(doc_cfg))]
pub extern crate swc_allocator as alloc;
#[cfg(feature = "swc_atoms")]
#[cfg_attr(docsrs, doc(cfg(feature = "swc_atoms")))]
pub use swc_atoms as atoms;
// Quote
#[cfg(feature = "ecma_quote")]
#[cfg_attr(docsrs, doc(cfg(feature = "ecma_quote")))]
pub mod quote;
/// Not a public... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/src/plugin.rs | Rust | // #[plugin_transform] macro
#[cfg(any(
docsrs,
feature = "__common_plugin_transform",
feature = "__css_plugin_transform",
))]
#[cfg_attr(
docsrs,
doc(cfg(any(
feature = "__common_plugin_transform",
feature = "__css_plugin_transform"
)))
)]
pub use swc_plugin_macro::css_plugin_tr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/src/quote.rs | Rust | /// # Supported output types
///
/// - `Expr`
/// - `Pat`
/// - `Stmt`
/// - `ModuleItem`
///
/// - Option<T> where T is supported type
/// - Box<T> where T is supported type
///
/// For example, `Box<Expr>` and `Option<Box<Expr>>` are supported.
///
/// # Variable substitution
///
/// If an identifier starts wit... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/tests/fixture/stub_napi/build.rs | Rust | use std::{
env,
fs::File,
io::{BufWriter, Write},
path::Path,
};
extern crate napi_build;
#[cfg(all(not(feature = "swc_v1"), not(feature = "swc_v2")))]
compile_error!("Please enable swc_v1 or swc_v2 feature");
#[cfg(all(feature = "swc_v1", feature = "swc_v2"))]
compile_error!("Features swc_v1 and swc... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/tests/fixture/stub_napi/src/lib.rs | Rust | #![recursion_limit = "2048"]
#![allow(dead_code)]
#[macro_use]
extern crate napi_derive;
use std::{env, panic::set_hook, sync::Arc};
use backtrace::Backtrace;
use swc_core::{
base::Compiler,
common::{sync::Lazy, FilePathMapping, SourceMap},
};
static COMPILER: Lazy<Arc<Compiler>> = Lazy::new(|| {
let cm... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/tests/fixture/stub_wasm/src/lib.rs | Rust | use swc_core::binding_macros::{
build_minify, build_minify_sync, build_parse, build_parse_sync, build_print, build_print_sync,
build_transform, build_transform_sync,
};
use wasm_bindgen::prelude::*;
build_minify_sync!(#[wasm_bindgen(js_name = "minifySync")]);
build_minify!(#[wasm_bindgen(js_name = "minify")]);... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/tests/integration.rs | Rust | use std::{
env,
path::{Path, PathBuf},
process::{Command, Stdio},
};
use anyhow::{anyhow, Error};
fn build_fixture_binary(dir: &Path, target: Option<&str>) -> Result<(), Error> {
let mut args = vec!["build".to_string()];
if let Some(target) = target {
args.push(format!("--target={}", targe... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_core/tests/quote.rs | Rust | #[cfg(feature = "ecma_quote")]
use swc_core::{common::DUMMY_SP, ecma::ast::Ident, ecma::utils::private_ident, quote, quote_expr};
#[cfg(feature = "ecma_quote")]
#[test]
fn quote_expr_call_1() {
let _expr = quote_expr!("call(arg1, typeof arg2, arg3)");
}
#[cfg(feature = "ecma_quote")]
#[test]
fn quote_expr_var_clo... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css/src/lib.rs | Rust | pub extern crate swc_css_ast as ast;
pub extern crate swc_css_codegen as codegen;
#[cfg(feature = "swc_css_compat")]
#[cfg_attr(docsrs, doc(cfg(feature = "compat")))]
pub extern crate swc_css_compat as compat;
#[cfg(feature = "swc_css_minifier")]
#[cfg_attr(docsrs, doc(cfg(feature = "minifier")))]
pub extern crate swc_... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_ast/src/at_rule.rs | Rust | use is_macro::Is;
use string_enum::StringEnum;
use swc_atoms::Atom;
use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span};
use crate::{
CustomIdent, CustomPropertyName, DashedIdent, Declaration, Dimension, FamilyName,
ForgivingSelectorList, Function, Ident, ListOfComponentValues, Number, Percentage,... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_ast/src/base.rs | Rust | use is_macro::Is;
use swc_atoms::Atom;
use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span};
use crate::{
AlphaValue, AnglePercentage, AtRule, CalcSum, CmykComponent, Color, ComplexSelector,
DashedIdent, Delimiter, Dimension, FrequencyPercentage, Hue, IdSelector, Ident, Integer,
KeyframeBlock, ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_ast/src/lib.rs | Rust | #![deny(clippy::all)]
#![allow(clippy::large_enum_variant)]
//! AST definitions for CSS.
pub use self::{at_rule::*, base::*, selector::*, token::*, value::*};
mod at_rule;
mod base;
mod selector;
mod token;
mod value;
/// Returns true if the given value matches one of the given patterns.
///
/// The type of value an... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_ast/src/selector.rs | Rust | use is_macro::Is;
use string_enum::StringEnum;
use swc_atoms::Atom;
use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span};
use crate::{Delimiter, Ident, ListOfComponentValues, Str, TokenAndSpan};
#[ast_node("SelectorList")]
#[derive(Eq, Hash, EqIgnoreSpan)]
pub struct SelectorList {
pub span: Span,
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_ast/src/token.rs | Rust | use std::{
hash::{Hash, Hasher},
mem,
};
use is_macro::Is;
#[cfg(feature = "serde-impl")]
use serde::{Deserialize, Serialize};
use swc_atoms::Atom;
use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span};
#[ast_node("PreservedToken")]
#[derive(Eq, Hash, EqIgnoreSpan)]
pub struct TokenAndSpan {
pu... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_ast/src/value.rs | Rust | use std::{
hash::{Hash, Hasher},
mem,
};
use is_macro::Is;
use string_enum::StringEnum;
use swc_atoms::Atom;
use swc_common::{ast_node, util::take::Take, EqIgnoreSpan, Span};
use crate::Function;
#[ast_node("Ident")]
#[derive(Eq, PartialOrd, Ord, Hash)]
pub struct Ident {
pub span: Span,
pub value: ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/src/ctx.rs | Rust | use std::ops::{Deref, DerefMut};
use crate::{writer::CssWriter, CodeGenerator};
impl<W> CodeGenerator<W>
where
W: CssWriter,
{
/// Original context is restored when returned guard is dropped.
#[inline]
pub(super) fn with_ctx(&mut self, ctx: Ctx) -> WithCtx<W> {
let orig_ctx = self.ctx;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/src/emit.rs | Rust | use std::fmt::Result;
use swc_common::Spanned;
///
/// # Type parameters
///
/// ## `T`
///
/// The type of the ast node.
pub trait Emit<T>
where
T: Spanned,
{
fn emit(&mut self, node: &T) -> Result;
}
impl<T, E> Emit<&'_ T> for E
where
E: Emit<T>,
T: Spanned,
{
#[allow(clippy::only_used_in_recur... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/src/lib.rs | Rust | #![deny(clippy::all)]
#![allow(clippy::needless_update)]
#![allow(non_local_definitions)]
pub use std::fmt::Result;
use std::{borrow::Cow, str, str::from_utf8};
use serde::{Deserialize, Serialize};
use swc_common::{BytePos, Span, Spanned, DUMMY_SP};
use swc_css_ast::*;
use swc_css_codegen_macros::emitter;
use swc_css... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/src/list.rs | Rust | #![allow(non_upper_case_globals)]
use bitflags::bitflags;
bitflags! {
#[derive(PartialEq, Eq, Copy, Clone)]
pub struct ListFormat: u16 {
const None = 0;
// Line separators
/// Prints the list on a single line (default).
const SingleLine = 0;
/// Prints the list on multi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/src/macros.rs | Rust | macro_rules! emit {
($g:expr,$n:expr) => {{
use crate::Emit;
$g.emit(&$n)?;
}};
}
macro_rules! write_raw {
($g:expr,$span:expr,$n:expr) => {{
$g.wr.write_raw(Some($span), $n)?;
}};
($g:expr,$n:expr) => {{
$g.wr.write_raw(None, $n)?;
}};
}
macro_rules! write_st... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/src/writer/basic.rs | Rust | use std::fmt::{Result, Write};
use rustc_hash::FxHashSet;
use swc_common::{BytePos, LineCol, Span};
use super::CssWriter;
#[derive(Clone, Default, Copy, PartialEq, Eq, Debug)]
pub enum IndentType {
Tab,
#[default]
Space,
}
#[derive(Clone, Default, Copy, PartialEq, Eq, Debug)]
pub enum LineFeed {
#[d... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/src/writer/mod.rs | Rust | use std::fmt::Result;
use auto_impl::auto_impl;
use swc_common::Span;
pub mod basic;
#[auto_impl(&mut, Box)]
pub trait CssWriter {
fn write_space(&mut self) -> Result;
fn write_newline(&mut self) -> Result;
fn write_raw(&mut self, span: Option<Span>, text: &str) -> Result;
fn write_str(&mut self, ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture.rs | Rust | use std::{
mem::take,
path::{Path, PathBuf},
};
use swc_common::{comments::SingleThreadedComments, sync::Lrc, FileName, Span};
use swc_css_ast::*;
use swc_css_codegen::{
writer::basic::{BasicCssWriter, BasicCssWriterConfig, IndentType, LineFeed},
CodeGenerator, CodegenConfig, Emit,
};
use swc_css_parse... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/charset/1/input.css | CSS | @charset "utf-8";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/charset/1/output.css | CSS | @charset "utf-8";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/charset/1/output.min.css | CSS | @charset "utf-8";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/charset/2/input.css | CSS | @charset "utf-8";
div {
background: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/charset/2/output.css | CSS | @charset "utf-8";
div {
background: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/charset/2/output.min.css | CSS | @charset "utf-8";div{background:red}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/color-profile/input.css | CSS | @color-profile --swop5c {
src: url('https://example.org/SWOP2006_Coated5v2.icc');
}
@color-profile --fogra55beta {
src: url('https://example.org/2020_13.003_FOGRA55beta_CL_Profile.icc');
prop: value;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/color-profile/output.css | CSS | @color-profile --swop5c {
src: url('https://example.org/SWOP2006_Coated5v2.icc');
}
@color-profile --fogra55beta {
src: url('https://example.org/2020_13.003_FOGRA55beta_CL_Profile.icc');
prop: value;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/color-profile/output.min.css | CSS | @color-profile --swop5c{src:url("https://example.org/SWOP2006_Coated5v2.icc")}@color-profile --fogra55beta{src:url("https://example.org/2020_13.003_FOGRA55beta_CL_Profile.icc");prop:value}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/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_codegen/tests/fixture/at-rules/container/output.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;
}
}
@container name not (width <= 500px... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/container/output.min.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}}@container name not (width<=500px){#inner{background-color:skyblue}}main,aside{container:my-layout/inline-siz... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/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_codegen/tests/fixture/at-rules/counter-style/output.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_codegen/tests/fixture/at-rules/counter-style/output.min.css | CSS | @counter-style thumbs{system:cyclic;symbols:"👍";suffix:" "}ul{list-style:thumbs}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/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_codegen/tests/fixture/at-rules/custom-media/output.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_codegen/tests/fixture/at-rules/custom-media/output.min.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 --circular-... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/document/1/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;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/document/1/output.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;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/document/1/output.min.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}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/font-face/1/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_codegen/tests/fixture/at-rules/font-face/1/output.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_codegen/tests/fixture/at-rules/font-face/1/output.min.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_codegen/tests/fixture/at-rules/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_codegen/tests/fixture/at-rules/font-feature-values/output.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... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/font-feature-values/output.min.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;circled:4}}@font-feature-values Taisho Gothic,Bar{@annotation{... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/import/1/input.css | CSS | @import 'custom.css';
@import url("chrome://communicator/skin/");
@import url("fineprint.css") print;
@import url("bluish.css") speech;
@import "common.css" screen;
@import url('landscape.css') screen and (orientation:landscape);
@import url("narrow.css")handheld and (max-width: 400px);
@import "narrow.css"handheld and... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/import/1/output.css | CSS | @import 'custom.css';
@import url("chrome://communicator/skin/");
@import url("fineprint.css") print;
@import url("bluish.css") speech;
@import "common.css" screen;
@import url('landscape.css') screen and (orientation: landscape);
@import url("narrow.css") handheld and (max-width: 400px);
@import "narrow.css" handheld ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/import/1/output.min.css | CSS | @import"custom.css";@import url("chrome://communicator/skin/");@import url("fineprint.css")print;@import url("bluish.css")speech;@import"common.css"screen;@import url("landscape.css")screen and (orientation:landscape);@import url("narrow.css")handheld and (max-width:400px);@import"narrow.css"handheld and (max-width:400... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/1/input.css | CSS | @keyframes slidein {
from {
transform: translateX(0%);
}
to {
transform: translateX(100%);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/1/output.css | CSS | @keyframes slidein {
from {
transform: translateX(0%);
}
to {
transform: translateX(100%);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/1/output.min.css | CSS | @keyframes slidein{from{transform:translatex(0%)}to{transform:translatex(100%)}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/2/input.css | CSS | @keyframes "foo" {
from {
transform: translateX(0%);
}
to {
transform: translateX(100%);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/2/output.css | CSS | @keyframes "foo" {
from {
transform: translateX(0%);
}
to {
transform: translateX(100%);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/2/output.min.css | CSS | @keyframes"foo"{from{transform:translatex(0%)}to{transform:translatex(100%)}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/3/input.css | CSS | @keyframes hahaha {
0%, 1% {
color: red;
}
100% {
color: red;
}
}
@keyframes ONE_TWO_THREE {
FROM {
transform: translateX(0%);
}
TO {
transform: translateX(100%);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/3/output.css | CSS | @keyframes hahaha {
0%, 1% {
color: red;
}
100% {
color: red;
}
}
@keyframes ONE_TWO_THREE {
FROM {
transform: translateX(0%);
}
TO {
transform: translateX(100%);
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/keyframes/3/output.min.css | CSS | @keyframes hahaha{0%,1%{color:red}100%{color:red}}@keyframes ONE_TWO_THREE{from{transform:translatex(0%)}to{transform:translatex(100%)}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/layer/1/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_codegen/tests/fixture/at-rules/layer/1/output.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 {
animat... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/layer/1/output.min.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:slide-left 300ms}@layer{}@layer{}@layer reset.type{strong{font-weight:bold}}@layer framework{.title{font-... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/1/input.css | CSS | @media (max-width: 1024px) {} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/1/output.css | CSS | @media (max-width: 1024px) {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/1/output.min.css | CSS | @media(max-width:1024px){}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/2/input.css | CSS | @media screen and (min-width: 900px) {
article {
padding: 1rem 3rem;
}
}
@supports (display: flex) {
@media screen and (min-width: 900px) {
article {
display: flex;
}
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/2/output.css | CSS | @media screen and (min-width: 900px) {
article {
padding: 1rem 3rem;
}
}
@supports (display: flex) {
@media screen and (min-width: 900px) {
article {
display: flex;
}
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/2/output.min.css | CSS | @media screen and (min-width:900px){article{padding:1rem 3rem}}@supports(display:flex){@media screen and (min-width:900px){article{display:flex}}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/3/input.css | CSS | @media {
div {
color: red
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/3/output.css | CSS | @media{
div {
color: red;
}
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/3/output.min.css | CSS | @media{div{color:red}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/4/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_codegen/tests/fixture/at-rules/media/4/output.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 {}
@media screen and (color) {}
@media screen a... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/media/4/output.min.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{}@media screen and (color){}@media screen and (color){}@media not al... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/namespace/input.css | CSS | /* Default namespace */
@namespace url(XML-namespace-URL);
@namespace "XML-namespace-URL";
/* Prefixed namespace */
@namespace prefix url(XML-namespace-URL);
@namespace prefix "XML-namespace-URL";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/namespace/output.css | CSS | @namespace url(XML-namespace-URL);
@namespace "XML-namespace-URL";
@namespace prefix url(XML-namespace-URL);
@namespace prefix "XML-namespace-URL";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/namespace/output.min.css | CSS | @namespace url(XML-namespace-URL);@namespace"XML-namespace-URL";@namespace prefix url(XML-namespace-URL);@namespace prefix"XML-namespace-URL";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/page/1/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 :first {
color: green;
@top-left {
content: "foo";
color: blue;
}
@top-right {
content: "bar";
}
}
@page :firs... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/page/1/output.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 :first {
color: green;
@top-left{
content: "foo";
color: blue;
}
@top-right{
content: "bar";
}
}
@page :firs... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/page/1/output.min.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:first{color:green;@top-left{content:"foo";color:blue}@top-right{content:"bar"}}@page:first{color:green;@top-left{content:"foo";color:blue}@top-right{content:"bar"}margin:20px}@page... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/property/input.css | CSS | @property --property-name {
syntax: '<color>';
inherits: false;
initial-value: #c0ffee;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/property/output.css | CSS | @property --property-name {
syntax: '<color>';
inherits: false;
initial-value: #c0ffee;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/property/output.min.css | CSS | @property --property-name{syntax:"<color>";inherits:false;initial-value:#c0ffee}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/scope/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_codegen/tests/fixture/at-rules/scope/output.css | CSS | @scope {
a {
color: darkmagenta;
}
}
@scope (.light-scheme) {
a {
color: darkmagenta;
}
}
@scope to (.content > *) {
img {
border-radius: 50%;
}
.content {
padding: 1em;
}
}
@scope (.media-object) to (.content > *) {
img {
border-radius: 50%;
}
.content {
padding: 1em;
}
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/at-rules/scope/output.min.css | CSS | @scope{a{color:darkmagenta}}@scope(.light-scheme){a{color:darkmagenta}}@scope to (.content>*){img{border-radius:50%}.content{padding:1em}}@scope(.media-object) to (.content>*){img{border-radius:50%}.content{padding:1em}}
| 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.