feat(css/ast): Union Value and ComponentValue (#3804)

This commit is contained in:
Alexander Akait 2022-03-01 18:26:17 +03:00 committed by GitHub
parent 6d0dcba63a
commit 3ec45a6858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
278 changed files with 10896 additions and 2359 deletions

View File

@ -2,7 +2,9 @@ use is_macro::Is;
use swc_common::{ast_node, Span};
use crate::{
AtRule, DashedIdent, Function, Ident, KeyframeBlock, SelectorList, TokenAndSpan, Tokens, Value,
AtRule, CalcSum, Color, ComplexSelector, DashedIdent, Delimiter, Dimension, Function, Ident,
Integer, KeyframeBlock, Number, Percentage, Ratio, SelectorList, Str, TokenAndSpan, Tokens,
UnicodeRange, Url,
};
#[ast_node("Stylesheet")]
@ -73,8 +75,36 @@ pub enum ComponentValue {
KeyframeBlock(KeyframeBlock),
// Arbitrary Contents grammar
#[tag("Value")]
Value(Value),
#[tag("Ident")]
Ident(Ident),
#[tag("DashedIdent")]
DashedIdent(DashedIdent),
#[tag("String")]
Str(Str),
#[tag("Url")]
Url(Url),
#[tag("Integer")]
Integer(Integer),
#[tag("Number")]
Number(Number),
#[tag("Percentage")]
Percentage(Percentage),
#[tag("Dimension")]
Dimension(Dimension),
#[tag("Ratio")]
Ratio(Ratio),
#[tag("UnicodeRange")]
UnicodeRange(UnicodeRange),
#[tag("Color")]
Color(Color),
#[tag("Delimiter")]
Delimiter(Delimiter),
// Special function Contents grammar
#[tag("CalcSum")]
CalcSum(CalcSum),
#[tag("ComplexSelector")]
ComplexSelector(ComplexSelector),
}
#[ast_node]
@ -91,7 +121,7 @@ pub enum DeclarationOrAtRule {
pub struct Declaration {
pub span: Span,
pub name: DeclarationName,
pub value: Vec<Value>,
pub value: Vec<ComponentValue>,
/// The span includes `!`
pub important: Option<ImportantFlag>,
}

View File

@ -2,64 +2,7 @@ use string_enum::StringEnum;
use swc_atoms::JsWord;
use swc_common::{ast_node, EqIgnoreSpan, Span};
use crate::{ComplexSelector, ComponentValue, SimpleBlock, TokenAndSpan};
#[ast_node]
pub enum Value {
#[tag("ComponentValue")]
ComponentValue(Box<ComponentValue>),
#[tag("SimpleBlock")]
SimpleBlock(SimpleBlock),
#[tag("Dimension")]
Dimension(Dimension),
#[tag("Number")]
Number(Number),
#[tag("Integer")]
Integer(Integer),
#[tag("Percentage")]
Percentage(Percentage),
#[tag("Ratio")]
Ratio(Ratio),
#[tag("Color")]
Color(Color),
#[tag("Ident")]
Ident(Ident),
#[tag("DashedIdent")]
DashedIdent(DashedIdent),
#[tag("String")]
Str(Str),
#[tag("Function")]
Function(Function),
#[tag("CalcSum")]
CalcSum(CalcSum),
#[tag("Delimiter")]
Delimiter(Delimiter),
#[tag("Url")]
Url(Url),
#[tag("UnicodeRange")]
UnicodeRange(UnicodeRange),
#[tag("ComplexSelector")]
ComplexSelector(ComplexSelector),
#[tag("PreservedToken")]
PreservedToken(TokenAndSpan),
}
use crate::ComponentValue;
#[ast_node("Ident")]
pub struct Ident {
@ -111,7 +54,7 @@ pub struct Function {
/// Span starting from the `lo` of identifier and to the end of `)`.
pub span: Span,
pub name: Ident,
pub value: Vec<Value>,
pub value: Vec<ComponentValue>,
}
#[ast_node]

View File

@ -692,7 +692,11 @@ where
}
}
fn emit_list_values(&mut self, nodes: &[Value], format: ListFormat) -> Result {
fn emit_list_of_component_values(
&mut self,
nodes: &[ComponentValue],
format: ListFormat,
) -> Result {
let iter = nodes.iter();
let len = nodes.len();
@ -701,25 +705,25 @@ where
if idx != len - 1 {
let need_delim = match node {
Value::SimpleBlock(_)
| Value::Function(_)
| Value::Color(Color::Function(_))
| Value::Delimiter(_)
| Value::Str(_)
| Value::Url(_)
| Value::Percentage(_) => match nodes.get(idx + 1) {
Some(Value::Delimiter(Delimiter {
ComponentValue::SimpleBlock(_)
| ComponentValue::Function(_)
| ComponentValue::Color(Color::Function(_))
| ComponentValue::Delimiter(_)
| ComponentValue::Str(_)
| ComponentValue::Url(_)
| ComponentValue::Percentage(_) => match nodes.get(idx + 1) {
Some(ComponentValue::Delimiter(Delimiter {
value: DelimiterValue::Comma,
..
})) => false,
_ => !self.config.minify,
},
Value::Ident(_) => match nodes.get(idx + 1) {
Some(Value::SimpleBlock(_))
| Some(Value::Color(Color::HexColor(_)))
| Some(Value::Str(_)) => !self.config.minify,
Some(Value::Delimiter(_)) => false,
Some(Value::Number(n)) => {
ComponentValue::Ident(_) => match nodes.get(idx + 1) {
Some(ComponentValue::SimpleBlock(_))
| Some(ComponentValue::Color(Color::HexColor(_)))
| Some(ComponentValue::Str(_)) => !self.config.minify,
Some(ComponentValue::Delimiter(_)) => false,
Some(ComponentValue::Number(n)) => {
if self.config.minify {
let minified = minify_numeric(n.value);
@ -728,7 +732,7 @@ where
true
}
}
Some(Value::Dimension(dimension)) => {
Some(ComponentValue::Dimension(dimension)) => {
if self.config.minify {
let value = match dimension {
Dimension::Length(i) => i.value.value,
@ -750,10 +754,9 @@ where
_ => true,
},
_ => match nodes.get(idx + 1) {
Some(Value::SimpleBlock(_)) | Some(Value::Color(Color::HexColor(_))) => {
!self.config.minify
}
Some(Value::Delimiter(_)) => false,
Some(ComponentValue::SimpleBlock(_))
| Some(ComponentValue::Color(Color::HexColor(_))) => !self.config.minify,
Some(ComponentValue::Delimiter(_)) => false,
_ => true,
},
};
@ -771,37 +774,13 @@ where
fn emit_function(&mut self, n: &Function) -> Result {
emit!(self, n.name);
punct!(self, "(");
self.emit_list_values(
self.emit_list_of_component_values(
&n.value,
ListFormat::SpaceDelimited | ListFormat::SingleLine,
)?;
punct!(self, ")");
}
#[emitter]
fn emit_value(&mut self, n: &Value) -> Result {
match n {
Value::ComponentValue(n) => emit!(self, n),
Value::Function(n) => emit!(self, n),
Value::SimpleBlock(n) => emit!(self, n),
Value::Dimension(n) => emit!(self, n),
Value::Integer(n) => emit!(self, n),
Value::Number(n) => emit!(self, n),
Value::Percentage(n) => emit!(self, n),
Value::Ratio(n) => emit!(self, n),
Value::Color(n) => emit!(self, n),
Value::Ident(n) => emit!(self, n),
Value::DashedIdent(n) => emit!(self, n),
Value::Str(n) => emit!(self, n),
Value::CalcSum(n) => emit!(self, n),
Value::Url(n) => emit!(self, n),
Value::Delimiter(n) => emit!(self, n),
Value::UnicodeRange(n) => emit!(self, n),
Value::ComplexSelector(n) => emit!(self, n),
Value::PreservedToken(n) => emit!(self, n),
}
}
#[emitter]
fn emit_at_rule_name(&mut self, n: &AtRuleName) -> Result {
match n {
@ -941,12 +920,11 @@ where
}
DeclarationOrAtRule::Invalid(_) => {}
},
ComponentValue::Value(_) => {
_ => {
if ending == ']' && idx != len - 1 {
space!(self);
}
}
_ => {}
}
}
@ -959,11 +937,27 @@ where
ComponentValue::PreservedToken(n) => emit!(self, n),
ComponentValue::Function(n) => emit!(self, n),
ComponentValue::SimpleBlock(n) => emit!(self, n),
ComponentValue::StyleBlock(n) => emit!(self, n),
ComponentValue::DeclarationOrAtRule(n) => emit!(self, n),
ComponentValue::Rule(n) => emit!(self, n),
ComponentValue::Value(n) => emit!(self, n),
ComponentValue::KeyframeBlock(n) => emit!(self, n),
ComponentValue::Ident(n) => emit!(self, n),
ComponentValue::DashedIdent(n) => emit!(self, n),
ComponentValue::Str(n) => emit!(self, n),
ComponentValue::Url(n) => emit!(self, n),
ComponentValue::Integer(n) => emit!(self, n),
ComponentValue::Number(n) => emit!(self, n),
ComponentValue::Percentage(n) => emit!(self, n),
ComponentValue::Dimension(n) => emit!(self, n),
ComponentValue::Ratio(n) => emit!(self, n),
ComponentValue::UnicodeRange(n) => emit!(self, n),
ComponentValue::Color(n) => emit!(self, n),
ComponentValue::Delimiter(n) => emit!(self, n),
ComponentValue::CalcSum(n) => emit!(self, n),
ComponentValue::ComplexSelector(n) => emit!(self, n),
}
}
@ -1015,7 +1009,7 @@ where
if is_custom_property {
self.emit_list(&n.value, ListFormat::NotDelimited)?;
} else {
self.emit_list_values(
self.emit_list_of_component_values(
&n.value,
ListFormat::SpaceDelimited | ListFormat::SingleLine,
)?;

View File

@ -5,8 +5,8 @@ use std::{
use swc_common::{FileName, Span};
use swc_css_ast::{
AnPlusBNotation, HexColor, ImportantFlag, Integer, Number, Str, Stylesheet, Token,
TokenAndSpan, UrlValueRaw, Value,
AnPlusBNotation, ComponentValue, HexColor, ImportantFlag, Integer, Number, Str, Stylesheet,
Token, TokenAndSpan, UrlValueRaw,
};
use swc_css_codegen::{
writer::basic::{BasicCssWriter, BasicCssWriterConfig},
@ -115,12 +115,12 @@ impl VisitMut for NormalizeTest {
// TODO - we should parse only some properties as `<integer>`, but it requires
// more work, let's postpone it to avoid breaking code
fn visit_mut_value(&mut self, n: &mut Value) {
fn visit_mut_component_value(&mut self, n: &mut ComponentValue) {
n.visit_mut_children_with(self);
match n {
Value::Number(Number { value, .. }) if value.fract() == 0.0 => {
*n = Value::Integer(Integer {
ComponentValue::Number(Number { value, .. }) if value.fract() == 0.0 => {
*n = ComponentValue::Integer(Integer {
span: Default::default(),
value: value.round() as i64,
raw: "".into(),

View File

@ -31,21 +31,21 @@ impl VisitMut for CompressAlphaValue {
}
}
fn visit_mut_value(&mut self, value: &mut Value) {
value.visit_mut_children_with(self);
fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) {
component_value.visit_mut_children_with(self);
if self.preserve {
return;
}
match value {
Value::Percentage(Percentage {
match component_value {
ComponentValue::Percentage(Percentage {
span,
value: number,
}) if number.value % 10.0 == 0.0 => {
let new_value = number.value / 100.0;
*value = Value::Number(Number {
*component_value = ComponentValue::Number(Number {
span: *span,
value: new_value,
raw: new_value.to_string().into(),

View File

@ -55,12 +55,12 @@ impl VisitMut for CompressAngle {
}
}
fn visit_mut_value(&mut self, value: &mut Value) {
value.visit_mut_children_with(self);
fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) {
component_value.visit_mut_children_with(self);
if self.in_transform_function {
match &value {
Value::Dimension(Dimension::Angle(Angle {
match &component_value {
ComponentValue::Dimension(Dimension::Angle(Angle {
value:
Number {
value: number_value,
@ -69,7 +69,7 @@ impl VisitMut for CompressAngle {
span,
..
})) if *number_value == 0.0 => {
*value = Value::Number(Number {
*component_value = ComponentValue::Number(Number {
span: *span,
value: 0.0,
raw: "0".into(),

View File

@ -10,16 +10,16 @@ struct CompressDeclaration {}
impl CompressDeclaration {
fn is_same_dimension_length_nodes(
&self,
node_1: Option<&Value>,
node_2: Option<&Value>,
node_1: Option<&ComponentValue>,
node_2: Option<&ComponentValue>,
) -> bool {
if let Some(Value::Dimension(Dimension::Length(Length {
if let Some(ComponentValue::Dimension(Dimension::Length(Length {
value: value_1,
unit: unit_1,
..
}))) = node_1
{
if let Some(Value::Dimension(Dimension::Length(Length {
if let Some(ComponentValue::Dimension(Dimension::Length(Length {
value: value_2,
unit: unit_2,
..
@ -50,7 +50,7 @@ impl VisitMut for CompressDeclaration {
for value in declaration.value.iter() {
match value {
outside_node @ Value::Ident(Ident { value, .. })
outside_node @ ComponentValue::Ident(Ident { value, .. })
if matches!(
&*value.to_lowercase(),
"block" | "inline" | "run-in"
@ -58,7 +58,7 @@ impl VisitMut for CompressDeclaration {
{
outside = Some(outside_node);
}
inside_node @ Value::Ident(Ident { value, .. })
inside_node @ ComponentValue::Ident(Ident { value, .. })
if matches!(
&*value.to_lowercase(),
"flow" | "flow-root" | "table" | "flex" | "grid" | "ruby"
@ -66,10 +66,10 @@ impl VisitMut for CompressDeclaration {
{
inside = Some(inside_node);
}
list_item_node @ Value::Ident(Ident { value, .. })
list_item_node @ ComponentValue::Ident(Ident { value, .. })
if &*value.to_lowercase() == "list-item" =>
{
if let Some(Value::Ident(Ident { value, .. })) = inside {
if let Some(ComponentValue::Ident(Ident { value, .. })) = inside {
if !matches!(&*value.to_lowercase(), "flow" | "flow-root") {
continue;
}
@ -87,7 +87,7 @@ impl VisitMut for CompressDeclaration {
// `run-in flow` -> `run-in`
(
Some(outside),
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: inside_value,
..
})),
@ -97,12 +97,12 @@ impl VisitMut for CompressDeclaration {
}
// `block flow-root` -> `flow-root`
(
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: outside_value,
..
})),
Some(
inside @ Value::Ident(Ident {
inside @ ComponentValue::Ident(Ident {
value: inside_value,
..
}),
@ -115,12 +115,12 @@ impl VisitMut for CompressDeclaration {
}
// `inline flow-root` -> `inline-block`
(
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: outside_value,
span,
..
})),
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: inside_value,
..
})),
@ -128,7 +128,7 @@ impl VisitMut for CompressDeclaration {
) if &*outside_value.to_lowercase() == "inline"
&& &*inside_value.to_lowercase() == "flow-root" =>
{
declaration.value = vec![Value::Ident(Ident {
declaration.value = vec![ComponentValue::Ident(Ident {
span: *span,
value: "inline-block".into(),
raw: "inline-block".into(),
@ -136,11 +136,11 @@ impl VisitMut for CompressDeclaration {
}
// `block flow list-item` -> `list-item`
(
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: outside_value,
..
})),
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: inside_value,
..
})),
@ -152,7 +152,7 @@ impl VisitMut for CompressDeclaration {
}
// `block list-item` -> `list-item`
(
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: outside_value,
..
})),
@ -164,7 +164,7 @@ impl VisitMut for CompressDeclaration {
// `flow list-item` -> `list-item`
(
None,
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: inside_value,
..
})),
@ -175,12 +175,12 @@ impl VisitMut for CompressDeclaration {
// `inline flow list-item` -> `inline list-item`
(
Some(
outside @ Value::Ident(Ident {
outside @ ComponentValue::Ident(Ident {
value: outside_value,
..
}),
),
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: inside_value,
..
})),
@ -194,12 +194,12 @@ impl VisitMut for CompressDeclaration {
// `block grid` -> `grid`
// `block table` -> `table`
(
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: outside_value,
..
})),
Some(
inside @ Value::Ident(Ident {
inside @ ComponentValue::Ident(Ident {
value: inside_value,
..
}),
@ -215,12 +215,12 @@ impl VisitMut for CompressDeclaration {
}
// `inline ruby` -> `ruby`
(
Some(Value::Ident(Ident {
Some(ComponentValue::Ident(Ident {
value: outside_value,
..
})),
Some(
inside @ Value::Ident(Ident {
inside @ ComponentValue::Ident(Ident {
value: inside_value,
..
}),
@ -275,19 +275,19 @@ impl VisitMut for CompressDeclaration {
.take()
.into_iter()
.map(|node| match node {
Value::Ident(Ident { value, span, .. })
ComponentValue::Ident(Ident { value, span, .. })
if value.to_lowercase() == "normal" =>
{
Value::Number(Number {
ComponentValue::Number(Number {
span,
value: 400.0,
raw: "400".into(),
})
}
Value::Ident(Ident { value, span, .. })
ComponentValue::Ident(Ident { value, span, .. })
if value.to_lowercase() == "bold" =>
{
Value::Number(Number {
ComponentValue::Number(Number {
span,
value: 700.0,
raw: "700".into(),

View File

@ -10,20 +10,20 @@ struct CompressEasingFunction {}
impl CompressEasingFunction {}
impl VisitMut for CompressEasingFunction {
fn visit_mut_value(&mut self, value: &mut Value) {
value.visit_mut_children_with(self);
fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) {
component_value.visit_mut_children_with(self);
match value {
Value::Function(Function {
match component_value {
ComponentValue::Function(Function {
name,
value: function_value,
span,
}) if &*name.value.to_lowercase() == "cubic-bezier" && function_value.len() == 7 => {
if let (
Value::Number(Number { value: first, .. }),
Value::Number(Number { value: second, .. }),
Value::Number(Number { value: third, .. }),
Value::Number(Number { value: fourth, .. }),
ComponentValue::Number(Number { value: first, .. }),
ComponentValue::Number(Number { value: second, .. }),
ComponentValue::Number(Number { value: third, .. }),
ComponentValue::Number(Number { value: fourth, .. }),
) = (
&function_value[0],
&function_value[2],
@ -31,31 +31,31 @@ impl VisitMut for CompressEasingFunction {
&function_value[6],
) {
if *first == 0.0 && *second == 0.0 && *third == 1.0 && *fourth == 1.0 {
*value = Value::Ident(Ident {
*component_value = ComponentValue::Ident(Ident {
span: *span,
value: "linear".into(),
raw: "linear".into(),
})
} else if *first == 0.25 && *second == 0.1 && *third == 0.25 && *fourth == 1.0 {
*value = Value::Ident(Ident {
*component_value = ComponentValue::Ident(Ident {
span: *span,
value: "easy".into(),
raw: "easy".into(),
})
} else if *first == 0.42 && *second == 0.0 && *third == 1.0 && *fourth == 1.0 {
*value = Value::Ident(Ident {
*component_value = ComponentValue::Ident(Ident {
span: *span,
value: "ease-in".into(),
raw: "ease-in".into(),
})
} else if *first == 0.0 && *second == 0.0 && *third == 0.58 && *fourth == 1.0 {
*value = Value::Ident(Ident {
*component_value = ComponentValue::Ident(Ident {
span: *span,
value: "ease-out".into(),
raw: "ease-out".into(),
})
} else if *first == 0.42 && *second == 0.0 && *third == 0.58 && *fourth == 1.0 {
*value = Value::Ident(Ident {
*component_value = ComponentValue::Ident(Ident {
span: *span,
value: "ease-in-out".into(),
raw: "ease-in-out".into(),
@ -63,30 +63,30 @@ impl VisitMut for CompressEasingFunction {
}
}
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
span,
}) if &*name.value.to_lowercase() == "steps" && function_value.len() == 3 => {
match (&function_value[0], &function_value[2]) {
(
Value::Number(Number {
ComponentValue::Number(Number {
value: number_value,
..
}),
Value::Ident(Ident {
ComponentValue::Ident(Ident {
value: ident_value, ..
}),
) if *number_value == 1.0 => match &*ident_value.to_lowercase() {
"start" | "jump-start" => {
*value = Value::Ident(Ident {
*component_value = ComponentValue::Ident(Ident {
span: *span,
value: "step-start".into(),
raw: "step-start".into(),
})
}
"end" | "jump-end" => {
*value = Value::Ident(Ident {
*component_value = ComponentValue::Ident(Ident {
span: *span,
value: "step-end".into(),
raw: "step-end".into(),
@ -95,25 +95,25 @@ impl VisitMut for CompressEasingFunction {
_ => {}
},
(
Value::Number(Number { .. }),
Value::Ident(Ident {
ComponentValue::Number(Number { .. }),
ComponentValue::Ident(Ident {
value: ident_value, ..
}),
) if ident_value.to_lowercase() == "jump-start" => {
function_value[2] = Value::Ident(Ident {
function_value[2] = ComponentValue::Ident(Ident {
span: *span,
value: "start".into(),
raw: "start".into(),
})
}
(
Value::Number(number),
Value::Ident(Ident {
ComponentValue::Number(number),
ComponentValue::Ident(Ident {
value: ident_value, ..
}),
) => match &*ident_value.to_lowercase() {
"end" | "jump-end" => {
*function_value = vec![Value::Number(number.clone())];
*function_value = vec![ComponentValue::Number(number.clone())];
}
_ => {}
},

View File

@ -116,15 +116,15 @@ impl VisitMut for CompressLength {
self.in_math_function = old_in_math_function;
}
fn visit_mut_value(&mut self, value: &mut Value) {
value.visit_mut_children_with(self);
fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) {
component_value.visit_mut_children_with(self);
if self.in_math_function {
return;
}
match &value {
Value::Dimension(Dimension::Length(Length {
match &component_value {
ComponentValue::Dimension(Dimension::Length(Length {
value:
Number {
value: number_value,
@ -133,7 +133,7 @@ impl VisitMut for CompressLength {
span,
..
})) if *number_value == 0.0 => {
*value = Value::Number(Number {
*component_value = ComponentValue::Number(Number {
span: *span,
value: 0.0,
raw: "0".into(),

View File

@ -10,11 +10,11 @@ struct CompressTransformFunction {}
impl CompressTransformFunction {}
impl VisitMut for CompressTransformFunction {
fn visit_mut_value(&mut self, value: &mut Value) {
value.visit_mut_children_with(self);
fn visit_mut_component_value(&mut self, component_value: &mut ComponentValue) {
component_value.visit_mut_children_with(self);
match value {
Value::Function(Function {
match component_value {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -22,7 +22,7 @@ impl VisitMut for CompressTransformFunction {
match (function_value.get(0), function_value.get(2)) {
(
Some(first),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
@ -30,7 +30,7 @@ impl VisitMut for CompressTransformFunction {
*function_value = vec![first.clone()];
}
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
@ -46,7 +46,7 @@ impl VisitMut for CompressTransformFunction {
_ => {}
}
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -57,11 +57,11 @@ impl VisitMut for CompressTransformFunction {
function_value.get(4),
) {
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
@ -77,7 +77,7 @@ impl VisitMut for CompressTransformFunction {
_ => {}
}
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -85,12 +85,12 @@ impl VisitMut for CompressTransformFunction {
match (function_value.get(0), function_value.get(2)) {
(
Some(
first @ Value::Number(Number {
first @ ComponentValue::Number(Number {
value: first_number,
..
}),
),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
@ -99,7 +99,7 @@ impl VisitMut for CompressTransformFunction {
}
(
Some(first),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
@ -112,7 +112,7 @@ impl VisitMut for CompressTransformFunction {
*function_value = vec![first.clone()];
}
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
@ -128,7 +128,7 @@ impl VisitMut for CompressTransformFunction {
_ => {}
}
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -140,11 +140,11 @@ impl VisitMut for CompressTransformFunction {
) {
(
Some(first),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: third_number,
..
})),
@ -157,12 +157,12 @@ impl VisitMut for CompressTransformFunction {
*function_value = vec![first.clone()];
}
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
Some(second),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: third_number,
..
})),
@ -175,11 +175,11 @@ impl VisitMut for CompressTransformFunction {
*function_value = vec![second.clone()];
}
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
@ -195,7 +195,7 @@ impl VisitMut for CompressTransformFunction {
_ => {}
}
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -228,11 +228,11 @@ impl VisitMut for CompressTransformFunction {
Some(first_comma),
Some(second),
Some(second_comma),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: third_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: fourth_number,
..
})),
@ -240,38 +240,38 @@ impl VisitMut for CompressTransformFunction {
Some(fifth_comma),
Some(sixth),
Some(sixth_comma),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: seventh_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: eighth_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: ninth_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: tenth_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: eleventh_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: twelfth_number,
..
})),
Some(thirteenth),
Some(thirteenth_comma),
Some(fourteenth),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: fifteenth_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: sixteenth_number,
..
})),
@ -308,7 +308,7 @@ impl VisitMut for CompressTransformFunction {
_ => {}
}
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -320,15 +320,15 @@ impl VisitMut for CompressTransformFunction {
function_value.get(6),
) {
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: third_number,
..
})),
@ -342,15 +342,15 @@ impl VisitMut for CompressTransformFunction {
*function_value = vec![fourth_value.clone()];
}
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: third_number,
..
})),
@ -364,15 +364,15 @@ impl VisitMut for CompressTransformFunction {
*function_value = vec![fourth_value.clone()];
}
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: third_number,
..
})),
@ -388,7 +388,7 @@ impl VisitMut for CompressTransformFunction {
_ => {}
}
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -400,7 +400,7 @@ impl VisitMut for CompressTransformFunction {
};
}
Value::Function(Function {
ComponentValue::Function(Function {
name,
value: function_value,
..
@ -408,7 +408,7 @@ impl VisitMut for CompressTransformFunction {
match (function_value.get(0), function_value.get(2)) {
(
Some(first),
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: second_number,
..
})),
@ -422,7 +422,7 @@ impl VisitMut for CompressTransformFunction {
}
(
Some(Value::Number(Number {
Some(ComponentValue::Number(Number {
value: first_number,
..
})),

View File

@ -4,22 +4,17 @@ use swc_css_ast::*;
use super::{input::ParserInput, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
parser::{Ctx, Grammar},
parser::{BlockContentsGrammar, Ctx},
Parse,
};
#[derive(Debug, Default)]
pub(super) struct AtRuleContext {}
impl<I> Parser<I>
impl<I> Parse<AtRule> for Parser<I>
where
I: ParserInput,
{
pub(super) fn parse_at_rule(&mut self, _ctx: AtRuleContext) -> PResult<AtRule> {
fn parse(&mut self) -> PResult<AtRule> {
let at_rule_span = self.input.cur_span()?;
assert!(matches!(cur!(self), Token::AtKeyword { .. }));
let name = match bump!(self) {
Token::AtKeyword { value, raw } => (value, raw),
_ => {
@ -389,7 +384,7 @@ where
// Consume a simple block and assign it to the at-rules block. Return the at-rule.
tok!("{") => {
let ctx = Ctx {
grammar: Grammar::NoGrammar,
block_contents_grammar: BlockContentsGrammar::NoGrammar,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -609,7 +604,7 @@ where
}
let ctx = Ctx {
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -663,7 +658,7 @@ where
fn parse(&mut self) -> PResult<ViewportRule> {
let span = self.input.cur_span()?;
let ctx = Ctx {
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -724,7 +719,7 @@ where
let span = self.input.cur_span()?;
let prelude = self.parse()?;
let ctx = Ctx {
grammar: Grammar::StyleBlock,
block_contents_grammar: BlockContentsGrammar::StyleBlock,
..self.ctx
};
@ -747,7 +742,7 @@ where
fn parse(&mut self) -> PResult<FontFaceRule> {
let span = self.input.cur_span()?;
let ctx = Ctx {
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -773,13 +768,13 @@ where
return Err(Error::new(span, ErrorKind::Expected("'{' delim token")));
}
let ctx = match self.ctx.grammar {
Grammar::StyleBlock => Ctx {
grammar: Grammar::StyleBlock,
let ctx = match self.ctx.block_contents_grammar {
BlockContentsGrammar::StyleBlock => Ctx {
block_contents_grammar: BlockContentsGrammar::StyleBlock,
..self.ctx
},
_ => Ctx {
grammar: Grammar::Stylesheet,
block_contents_grammar: BlockContentsGrammar::Stylesheet,
..self.ctx
},
};
@ -998,7 +993,7 @@ where
tok!("function") => Ok(GeneralEnclosed::Function(self.parse()?)),
tok!("(") => {
let ctx = Ctx {
grammar: Grammar::NoGrammar,
block_contents_grammar: BlockContentsGrammar::NoGrammar,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -1038,13 +1033,13 @@ where
matching_functions.push(self.parse()?);
}
let ctx = match self.ctx.grammar {
Grammar::StyleBlock => Ctx {
grammar: Grammar::StyleBlock,
let ctx = match self.ctx.block_contents_grammar {
BlockContentsGrammar::StyleBlock => Ctx {
block_contents_grammar: BlockContentsGrammar::StyleBlock,
..self.ctx
},
_ => Ctx {
grammar: Grammar::Stylesheet,
block_contents_grammar: BlockContentsGrammar::Stylesheet,
..self.ctx
},
};
@ -1107,13 +1102,13 @@ where
return Err(Error::new(span, ErrorKind::Expected("'{' delim token")));
}
let ctx = match self.ctx.grammar {
Grammar::StyleBlock => Ctx {
grammar: Grammar::StyleBlock,
let ctx = match self.ctx.block_contents_grammar {
BlockContentsGrammar::StyleBlock => Ctx {
block_contents_grammar: BlockContentsGrammar::StyleBlock,
..self.ctx
},
_ => Ctx {
grammar: Grammar::Stylesheet,
block_contents_grammar: BlockContentsGrammar::Stylesheet,
..self.ctx
},
};
@ -1653,7 +1648,7 @@ where
let ctx = Ctx {
in_page_at_rule: true,
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -1804,7 +1799,7 @@ where
fn parse(&mut self) -> PResult<PageMarginRule> {
let span = self.input.cur_span()?;
let ctx = Ctx {
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -1898,7 +1893,7 @@ where
// Block
None | Some(LayerPrelude::Name(LayerName { .. })) if is!(self, "{") => {
let ctx = Ctx {
grammar: Grammar::Stylesheet,
block_contents_grammar: BlockContentsGrammar::Stylesheet,
..self.ctx
};
println!("{:?}", self.input.cur());
@ -1951,7 +1946,7 @@ where
self.input.skip_ws()?;
let ctx = Ctx {
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -1975,7 +1970,7 @@ where
self.input.skip_ws()?;
let ctx = Ctx {
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -1999,7 +1994,7 @@ where
self.input.skip_ws()?;
let ctx = Ctx {
grammar: Grammar::DeclarationList,
block_contents_grammar: BlockContentsGrammar::DeclarationList,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;

View File

@ -4,7 +4,7 @@ use swc_css_ast::*;
use super::{input::ParserInput, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
parser::{Ctx, Grammar, RuleContext},
parser::{BlockContentsGrammar, Ctx, RuleContext},
Parse,
};
@ -66,7 +66,7 @@ where
// Reconsume the current input token. Consume an at-rule, and append the returned
// value to the list of rules.
tok!("@") => {
rules.push(Rule::AtRule(self.parse_at_rule(Default::default())?));
rules.push(Rule::AtRule(self.parse()?));
}
// anything else
// Reconsume the current input token. Consume a qualified rule. If anything is
@ -132,7 +132,7 @@ where
// qualified rule.
tok!("{") => {
let ctx = Ctx {
grammar: Grammar::StyleBlock,
block_contents_grammar: BlockContentsGrammar::StyleBlock,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
@ -185,7 +185,7 @@ where
// Reconsume the current input token. Consume an at-rule, and append the result to
// rules.
tok!("@") => {
rules.push(StyleBlock::AtRule(self.parse_at_rule(Default::default())?));
rules.push(StyleBlock::AtRule(self.parse()?));
}
// <ident-token>
// Initialize a temporary list initially filled with the current input token. As
@ -196,8 +196,8 @@ where
tok!("ident") => {
let state = self.input.state();
let span = self.input.cur_span()?;
let prop = match self.parse().map(StyleBlock::Declaration) {
Ok(v) => v,
let prop = match self.parse() {
Ok(v) => StyleBlock::Declaration(v),
Err(err) => {
self.errors.push(err);
self.input.reset(&state);
@ -286,42 +286,6 @@ where
}
}
impl<I> Parse<ComponentValue> for Parser<I>
where
I: ParserInput,
{
fn parse(&mut self) -> PResult<ComponentValue> {
// Consume the next input token.
match cur!(self) {
// If the current input token is a <{-token>, <[-token>, or <(-token>, consume a simple
// block and return it.
tok!("[") | tok!("(") | tok!("{") => {
let ctx = Ctx {
grammar: Grammar::NoGrammar,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
Ok(ComponentValue::SimpleBlock(block))
}
// Otherwise, if the current input token is a <function-token>, consume a function and
// return it.
tok!("function") => Ok(ComponentValue::Function(self.parse()?)),
// Otherwise, return the current input token.
_ => {
let token = self.input.bump()?;
match token {
Some(t) => Ok(ComponentValue::PreservedToken(t)),
_ => {
unreachable!();
}
}
}
}
}
}
impl<I> Parse<SimpleBlock> for Parser<I>
where
I: ParserInput,
@ -357,7 +321,7 @@ where
};
// TODO refactor me
if self.ctx.grammar != Grammar::NoGrammar {
if self.ctx.block_contents_grammar != BlockContentsGrammar::NoGrammar {
self.input.skip_ws()?;
}
@ -394,13 +358,13 @@ where
// anything else
// Reconsume the current input token. Consume a component value and append it to the
// value of the block.
_ => match self.ctx.grammar {
Grammar::NoGrammar => {
_ => match self.ctx.block_contents_grammar {
BlockContentsGrammar::NoGrammar => {
let component_value = self.parse()?;
simple_block.value.push(component_value);
}
Grammar::StyleBlock => {
BlockContentsGrammar::StyleBlock => {
let style_blocks: Vec<StyleBlock> = self.parse()?;
let style_blocks: Vec<ComponentValue> = style_blocks
.into_iter()
@ -410,7 +374,7 @@ where
simple_block.value.extend(style_blocks);
}
// TODO improve grammar validation
Grammar::RuleList | Grammar::Stylesheet => {
BlockContentsGrammar::RuleList | BlockContentsGrammar::Stylesheet => {
let rule_list = self.parse_rule_list(RuleContext {
is_top_level: false,
})?;
@ -419,7 +383,7 @@ where
simple_block.value.extend(rule_list);
}
Grammar::DeclarationList => {
BlockContentsGrammar::DeclarationList => {
let declaration_list: Vec<DeclarationOrAtRule> = self.parse()?;
let declaration_list: Vec<ComponentValue> = declaration_list
.into_iter()
@ -428,20 +392,25 @@ where
simple_block.value.extend(declaration_list);
}
Grammar::DeclarationValue => {
BlockContentsGrammar::DeclarationValue => {
let state = self.input.state();
let parsed = self.parse_one_value_inner();
let parsed = self.parse();
let value = match parsed {
Ok(value) => {
self.input.skip_ws()?;
ComponentValue::Value(value)
value
}
Err(err) => {
self.errors.push(err);
self.input.reset(&state);
self.parse()?
let ctx = Ctx {
block_contents_grammar: BlockContentsGrammar::NoGrammar,
..self.ctx
};
self.with_ctx(ctx).parse_as::<ComponentValue>()?
}
};
@ -457,6 +426,123 @@ where
}
}
impl<I> Parse<ComponentValue> for Parser<I>
where
I: ParserInput,
{
fn parse(&mut self) -> PResult<ComponentValue> {
match self.ctx.block_contents_grammar {
BlockContentsGrammar::DeclarationValue => {
// TODO refactor me
self.input.skip_ws()?;
let span = self.input.cur_span()?;
match cur!(self) {
tok!(",") | tok!("/") | tok!(";") => {
return Ok(ComponentValue::Delimiter(self.parse()?));
}
tok!("string") => {
return Ok(ComponentValue::Str(self.parse()?));
}
tok!("url") => {
return Ok(ComponentValue::Url(self.parse()?));
}
Token::Function { value, .. } => match &*value.to_ascii_lowercase() {
"url" | "src" => {
return Ok(ComponentValue::Url(self.parse()?));
}
"rgb" | "rgba" | "hsl" | "hsla" | "hwb" | "lab" | "lch" | "oklab"
| "oklch" | "color" => {
return Ok(ComponentValue::Color(self.parse()?));
}
_ => {
return Ok(ComponentValue::Function(self.parse()?));
}
},
tok!("percentage") => {
return Ok(ComponentValue::Percentage(self.parse()?));
}
tok!("dimension") => return Ok(ComponentValue::Dimension(self.parse()?)),
Token::Number { type_flag, .. } => {
if *type_flag == NumberType::Integer {
return Ok(ComponentValue::Integer(self.parse()?));
}
return Ok(ComponentValue::Number(self.parse()?));
}
Token::Ident { value, .. } => {
if value.starts_with("--") {
return Ok(ComponentValue::DashedIdent(self.parse()?));
} else if &*value.to_ascii_lowercase() == "u"
&& peeked_is_one_of!(self, "+", "number", "dimension")
{
return Ok(ComponentValue::UnicodeRange(self.parse()?));
}
return Ok(ComponentValue::Ident(self.parse()?));
}
tok!("[") | tok!("(") | tok!("{") => {
let ctx = Ctx {
block_contents_grammar: BlockContentsGrammar::DeclarationValue,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
return Ok(ComponentValue::SimpleBlock(block));
}
tok!("#") => {
return Ok(ComponentValue::Color(Color::HexColor(self.parse()?)));
}
_ => {}
}
Err(Error::new(span, ErrorKind::Expected("Declaration value")))
}
_ => {
// Consume the next input token.
match cur!(self) {
// If the current input token is a <{-token>, <[-token>, or <(-token>, consume a
// simple block and return it.
tok!("[") | tok!("(") | tok!("{") => {
let ctx = Ctx {
block_contents_grammar: BlockContentsGrammar::NoGrammar,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
Ok(ComponentValue::SimpleBlock(block))
}
// Otherwise, if the current input token is a <function-token>, consume a
// function and return it.
tok!("function") => Ok(ComponentValue::Function(self.parse()?)),
// Otherwise, return the current input token.
_ => {
let token = self.input.bump()?;
match token {
Some(t) => Ok(ComponentValue::PreservedToken(t)),
_ => {
unreachable!();
}
}
}
}
}
}
}
}
impl<I> Parse<Vec<DeclarationOrAtRule>> for Parser<I>
where
I: ParserInput,
@ -477,15 +563,13 @@ where
bump!(self);
}
tok!("@") => {
declarations.push(DeclarationOrAtRule::AtRule(
self.parse_at_rule(Default::default())?,
));
declarations.push(DeclarationOrAtRule::AtRule(self.parse()?));
}
tok!("ident") => {
let state = self.input.state();
let span = self.input.cur_span()?;
let prop = match self.parse().map(DeclarationOrAtRule::Declaration) {
Ok(v) => v,
let prop = match self.parse() {
Ok(v) => DeclarationOrAtRule::Declaration(v),
Err(err) => {
self.errors.push(err);
self.input.reset(&state);
@ -550,6 +634,9 @@ where
self.input.skip_ws()?;
// 1. Consume the next input token. Create a new declaration with its name set
// to the value of the current input token and its value initially set to an
// empty list.
let is_dashed_ident = match cur!(self) {
Token::Ident { value, .. } => value.starts_with("--"),
_ => {
@ -563,15 +650,23 @@ where
DeclarationName::Ident(self.parse()?)
};
// 1. While the next input token is a <whitespace-token>, consume the next input
// token.
self.input.skip_ws()?;
// 2. If the next input token is anything other than a <colon-token>, this is a
// parse error. Return nothing. Otherwise, consume the next input token.
expect!(self, ":");
// 3. While the next input token is a <whitespace-token>, consume the next input
// token.
self.input.skip_ws()?;
let mut end = self.input.cur_span()?.hi;
let mut value = vec![];
// 4. As long as the next input token is anything other than an <EOF-token>,
// consume a component value and append it to the declarations value.
if !is!(self, EOF) {
match is_dashed_ident {
true => {
@ -588,14 +683,23 @@ where
}
let state = self.input.state();
let parsed = self.parse_one_value_inner();
let ctx = Ctx {
block_contents_grammar: BlockContentsGrammar::DeclarationValue,
..self.ctx
};
let parsed = self.with_ctx(ctx).parse_as::<ComponentValue>();
let value_or_token = match parsed {
Ok(value) => value,
Err(err) => {
self.errors.push(err);
self.input.reset(&state);
Value::ComponentValue(self.parse()?)
let ctx = Ctx {
block_contents_grammar: BlockContentsGrammar::NoGrammar,
..self.ctx
};
self.with_ctx(ctx).parse_as::<ComponentValue>()?
}
};

View File

@ -30,7 +30,7 @@ pub struct ParserConfig {
}
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Grammar {
pub enum BlockContentsGrammar {
NoGrammar,
StyleBlock,
DeclarationList,
@ -39,15 +39,15 @@ pub enum Grammar {
DeclarationValue,
}
impl Default for Grammar {
impl Default for BlockContentsGrammar {
fn default() -> Self {
Grammar::NoGrammar
BlockContentsGrammar::NoGrammar
}
}
#[derive(Debug, Default, Clone, Copy)]
struct Ctx {
grammar: Grammar,
block_contents_grammar: BlockContentsGrammar,
in_supports_at_rule: bool,
in_page_at_rule: bool,

View File

@ -1,7 +1,7 @@
use swc_common::{BytePos, Span};
use swc_css_ast::*;
use super::{input::ParserInput, Ctx, Grammar, PResult, Parser};
use super::{input::ParserInput, BlockContentsGrammar, Ctx, PResult, Parser};
use crate::{
error::{Error, ErrorKind},
Parse,
@ -15,7 +15,7 @@ where
I: ParserInput,
{
/// Parse value as <declaration-value>.
pub(super) fn parse_declaration_value(&mut self) -> PResult<Vec<Value>> {
pub(super) fn parse_declaration_value(&mut self) -> PResult<Vec<ComponentValue>> {
let mut value = vec![];
let mut balance_stack: Vec<Option<char>> = vec![];
@ -82,7 +82,7 @@ where
let token = self.input.bump()?;
match token {
Some(token) => value.push(Value::PreservedToken(token)),
Some(token) => value.push(ComponentValue::PreservedToken(token)),
None => break,
}
}
@ -152,93 +152,7 @@ where
Ok(tokens)
}
pub(super) fn parse_one_value_inner(&mut self) -> PResult<Value> {
// TODO remove me
self.input.skip_ws()?;
let span = self.input.cur_span()?;
match cur!(self) {
tok!(",") => return Ok(Value::Delimiter(self.parse()?)),
tok!("/") => return Ok(Value::Delimiter(self.parse()?)),
tok!(";") => return Ok(Value::Delimiter(self.parse()?)),
tok!("string") => return Ok(Value::Str(self.parse()?)),
tok!("url") => return Ok(Value::Url(self.parse()?)),
Token::Function { value, .. } => match &*value.to_ascii_lowercase() {
"url" | "src" => return Ok(Value::Url(self.parse()?)),
"rgb" | "rgba" | "hsl" | "hsla" | "hwb" | "lab" | "lch" | "oklab" | "oklch"
| "color" => return Ok(Value::Color(self.parse()?)),
_ => return Ok(Value::Function(self.parse()?)),
},
tok!("percentage") => return Ok(Value::Percentage(self.parse()?)),
tok!("dimension") => return Ok(Value::Dimension(self.parse()?)),
Token::Number { type_flag, .. } => {
if *type_flag == NumberType::Integer {
return Ok(Value::Integer(self.parse()?));
}
return Ok(Value::Number(self.parse()?));
}
Token::Ident { value, .. } => {
if value.starts_with("--") {
return Ok(Value::DashedIdent(self.parse()?));
} else if &*value.to_ascii_lowercase() == "u"
&& peeked_is_one_of!(self, "+", "number", "dimension")
{
return Ok(Value::UnicodeRange(self.parse()?));
}
return Ok(Value::Ident(self.parse()?));
}
tok!("[") => {
let ctx = Ctx {
grammar: Grammar::DeclarationValue,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
return Ok(Value::SimpleBlock(block));
}
tok!("(") => {
let ctx = Ctx {
grammar: Grammar::DeclarationValue,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
return Ok(Value::SimpleBlock(block));
}
tok!("{") => {
let ctx = Ctx {
grammar: Grammar::DeclarationValue,
..self.ctx
};
let block = self.with_ctx(ctx).parse_as::<SimpleBlock>()?;
return Ok(Value::SimpleBlock(block));
}
tok!("#") => return Ok(Value::Color(Color::HexColor(self.parse()?))),
_ => {}
}
Err(Error::new(span, ErrorKind::Expected("Declaration value")))
}
pub fn parse_function_values(&mut self, function_name: &str) -> PResult<Vec<Value>> {
pub fn parse_function_values(&mut self, function_name: &str) -> PResult<Vec<ComponentValue>> {
let mut values = vec![];
match function_name {
@ -246,7 +160,7 @@ where
| "sign" => {
self.input.skip_ws()?;
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
@ -255,7 +169,7 @@ where
"min" | "max" | "hypot" => {
self.input.skip_ws()?;
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
@ -263,14 +177,14 @@ where
self.input.skip_ws()?;
if is!(self, ",") {
values.push(Value::Delimiter(self.parse()?));
values.push(ComponentValue::Delimiter(self.parse()?));
self.input.skip_ws()?;
} else {
break;
}
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
}
@ -278,14 +192,14 @@ where
"clamp" => {
self.input.skip_ws()?;
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
self.input.skip_ws()?;
if is!(self, ",") {
values.push(Value::Delimiter(self.parse()?));
values.push(ComponentValue::Delimiter(self.parse()?));
self.input.skip_ws()?;
} else {
@ -294,14 +208,14 @@ where
return Err(Error::new(span, ErrorKind::Expected("',' delim token")));
}
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
self.input.skip_ws()?;
if is!(self, ",") {
values.push(Value::Delimiter(self.parse()?));
values.push(ComponentValue::Delimiter(self.parse()?));
self.input.skip_ws()?;
} else {
@ -310,7 +224,7 @@ where
return Err(Error::new(span, ErrorKind::Expected("',' delim token")));
}
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
@ -321,14 +235,14 @@ where
if is!(self, "ident") {
// TODO improve me
let rounding_strategy = Value::Ident(self.parse()?);
let rounding_strategy = ComponentValue::Ident(self.parse()?);
values.push(rounding_strategy);
self.input.skip_ws()?;
if is!(self, ",") {
values.push(Value::Delimiter(self.parse()?));
values.push(ComponentValue::Delimiter(self.parse()?));
self.input.skip_ws()?;
} else {
@ -338,14 +252,14 @@ where
}
}
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
self.input.skip_ws()?;
if is!(self, ",") {
values.push(Value::Delimiter(self.parse()?));
values.push(ComponentValue::Delimiter(self.parse()?));
self.input.skip_ws()?;
} else {
@ -354,7 +268,7 @@ where
return Err(Error::new(span, ErrorKind::Expected("',' delim token")));
}
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
@ -363,14 +277,14 @@ where
"mod" | "rem" | "atan2" | "pow" => {
self.input.skip_ws()?;
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
self.input.skip_ws()?;
if is!(self, ",") {
values.push(Value::Delimiter(self.parse()?));
values.push(ComponentValue::Delimiter(self.parse()?));
self.input.skip_ws()?;
} else {
@ -379,7 +293,7 @@ where
return Err(Error::new(span, ErrorKind::Expected("',' delim token")));
}
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
@ -388,18 +302,18 @@ where
"log" => {
self.input.skip_ws()?;
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
self.input.skip_ws()?;
if is!(self, ",") {
values.push(Value::Delimiter(self.parse()?));
values.push(ComponentValue::Delimiter(self.parse()?));
self.input.skip_ws()?;
let calc_sum = Value::CalcSum(self.parse()?);
let calc_sum = ComponentValue::CalcSum(self.parse()?);
values.push(calc_sum);
@ -409,7 +323,7 @@ where
"selector" if self.ctx.in_supports_at_rule => {
self.input.skip_ws()?;
let selector = Value::ComplexSelector(self.parse()?);
let selector = ComponentValue::ComplexSelector(self.parse()?);
values.push(selector);
@ -422,7 +336,12 @@ where
break;
}
values.push(self.parse_one_value_inner()?);
let ctx = Ctx {
block_contents_grammar: BlockContentsGrammar::DeclarationValue,
..self.ctx
};
values.push(self.with_ctx(ctx).parse_as::<ComponentValue>()?);
},
};
@ -1294,7 +1213,7 @@ where
self.errors.push(err);
self.input.reset(&state);
function.value.push(Value::ComponentValue(self.parse()?));
function.value.push(self.parse()?);
}
}
}

View File

@ -10,6 +10,12 @@ error: Expected 'number', 'dimension', 'percentage', 'ident', '(' or 'function'
3 | }
| ^
error: Expected Declaration value
--> $DIR/tests/errors/rome/invalid/min-or-max/input.css:3:1
|
3 | }
| ^
error: Unexpected end of file
--> $DIR/tests/errors/rome/invalid/min-or-max/input.css:3:3
|

View File

@ -336,6 +336,8 @@ impl Visit for SpanVisualizer<'_> {
mtd!(SimpleBlock, visit_simple_block);
mtd!(ComponentValue, visit_component_value);
mtd!(Function, visit_function);
mtd!(Color, visit_color);
@ -400,8 +402,6 @@ impl Visit for SpanVisualizer<'_> {
mtd!(UnicodeRange, visit_unicode_range);
mtd!(Value, visit_value);
mtd!(CalcSum, visit_calc_sum);
mtd!(CalcProductOrOperator, visit_calc_product_or_operator);

View File

@ -55,6 +55,12 @@ error: SimpleBlock
3 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/color-profile/input.css:2:5
|
2 | src: url('https://example.org/Coated_Fogra39L_VIGC_300.icc');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/color-profile/input.css:2:5
|
@ -73,7 +79,7 @@ error: Ident
2 | src: url('https://example.org/Coated_Fogra39L_VIGC_300.icc');
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/color-profile/input.css:2:10
|
2 | src: url('https://example.org/Coated_Fogra39L_VIGC_300.icc');
@ -148,6 +154,12 @@ error: SimpleBlock
7 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/color-profile/input.css:6:5
|
6 | src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/color-profile/input.css:6:5
|
@ -166,7 +178,7 @@ error: Ident
6 | src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc');
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/color-profile/input.css:6:10
|
6 | src: url('https://drafts.csswg.org/css-color-4/ICCprofiles/Coated_Fogra39L_VIGC_300.icc');

View File

@ -57,6 +57,12 @@ error: SimpleBlock
5 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:2:5
|
2 | system: cyclic;
| ^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/counter-style/input.css:2:5
|
@ -75,7 +81,7 @@ error: Ident
2 | system: cyclic;
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:2:13
|
2 | system: cyclic;
@ -87,6 +93,12 @@ error: Ident
2 | system: cyclic;
| ^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:3:5
|
3 | symbols: "\1F44D";
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/counter-style/input.css:3:5
|
@ -105,7 +117,7 @@ error: Ident
3 | symbols: "\1F44D";
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:3:14
|
3 | symbols: "\1F44D";
@ -117,6 +129,12 @@ error: Str
3 | symbols: "\1F44D";
| ^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:4:5
|
4 | suffix: " ";
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/counter-style/input.css:4:5
|
@ -135,7 +153,7 @@ error: Ident
4 | suffix: " ";
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:4:13
|
4 | suffix: " ";
@ -214,6 +232,12 @@ error: SimpleBlock
9 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:8:5
|
8 | list-style: thumbs;
| ^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/counter-style/input.css:8:5
|
@ -238,7 +262,7 @@ error: Ident
8 | list-style: thumbs;
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/counter-style/input.css:8:17
|
8 | list-style: thumbs;

View File

@ -81,6 +81,14 @@ error: SimpleBlock
5 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:2:5
|
2 | / h1 {
3 | | color: green;
4 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/document/input.css:2:5
|
@ -148,6 +156,12 @@ error: SimpleBlock
4 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:3:9
|
3 | color: green;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/document/input.css:3:9
|
@ -172,7 +186,7 @@ error: Ident
3 | color: green;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:3:16
|
3 | color: green;
@ -265,7 +279,7 @@ error: Ident
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:7:49
|
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
@ -295,7 +309,7 @@ error: Ident
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:7:85
|
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
@ -325,7 +339,7 @@ error: Ident
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
| ^^^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:7:116
|
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
@ -355,7 +369,7 @@ error: Ident
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:7:133
|
7 | @document url("http://www.w3.org/"), url-prefix("http://www.w3.org/Style/"), domain("mozilla.org"), media-document("video"), regexp("https:.*") {
@ -379,6 +393,15 @@ error: SimpleBlock
12 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:8:5
|
8 | / body {
9 | | color: purple;
10 | | background: yellow;
11 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/document/input.css:8:5
|
@ -449,6 +472,12 @@ error: SimpleBlock
11 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:9:9
|
9 | color: purple;
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/document/input.css:9:9
|
@ -473,7 +502,7 @@ error: Ident
9 | color: purple;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:9:16
|
9 | color: purple;
@ -485,6 +514,12 @@ error: Ident
9 | color: purple;
| ^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:10:9
|
10 | background: yellow;
| ^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/document/input.css:10:9
|
@ -509,7 +544,7 @@ error: Ident
10 | background: yellow;
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:10:21
|
10 | background: yellow;
@ -762,6 +797,16 @@ error: SimpleBlock
24 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:19:5
|
19 | / @media screen and (min-width: 900px) {
20 | | article {
21 | | padding: 1rem 3rem;
22 | | }
23 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/document/input.css:19:5
|
@ -893,6 +938,14 @@ error: SimpleBlock
23 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:20:9
|
20 | / article {
21 | | padding: 1rem 3rem;
22 | | }
| |_________^
error: Rule
--> $DIR/tests/fixture/at-rule/document/input.css:20:9
|
@ -960,6 +1013,12 @@ error: SimpleBlock
22 | | }
| |_________^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:21:13
|
21 | padding: 1rem 3rem;
| ^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/document/input.css:21:13
|
@ -984,7 +1043,7 @@ error: Ident
21 | padding: 1rem 3rem;
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:21:22
|
21 | padding: 1rem 3rem;
@ -1014,7 +1073,7 @@ error: Ident
21 | padding: 1rem 3rem;
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/document/input.css:21:27
|
21 | padding: 1rem 3rem;

View File

@ -49,6 +49,12 @@ error: SimpleBlock
5 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:2:5
|
2 | font-family: "Open Sans";
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/font-face/input.css:2:5
|
@ -67,7 +73,7 @@ error: Ident
2 | font-family: "Open Sans";
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:2:18
|
2 | font-family: "Open Sans";
@ -79,6 +85,13 @@ error: Str
2 | font-family: "Open Sans";
| ^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:5
|
3 | / src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
4 | | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
| |______________________________________________________________^
error: Declaration
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:5
|
@ -98,7 +111,7 @@ error: Ident
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:10
|
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -128,7 +141,7 @@ error: Str
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:55
|
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -146,7 +159,7 @@ error: Ident
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:62
|
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -158,7 +171,7 @@ error: Str
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:3:70
|
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -170,7 +183,7 @@ error: Delimiter
3 | src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:4:5
|
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
@ -200,7 +213,7 @@ error: Str
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:4:49
|
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
@ -218,7 +231,7 @@ error: Ident
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/font-face/input.css:4:56
|
4 | url("/fonts/OpenSans-Regular-webfont.woff") format("woff");

View File

@ -802,7 +802,7 @@ error: Ident
15 | @import url("theme.css") layer(default);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:15:32
|
15 | @import url("theme.css") layer(default);
@ -880,7 +880,7 @@ error: Ident
16 | @import url("theme.css") LAYER(default);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:16:32
|
16 | @import url("theme.css") LAYER(default);
@ -1030,7 +1030,7 @@ error: Ident
19 | @import url("narrow.css") supports(display: flex) handheld and (max-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:19:45
|
19 | @import url("narrow.css") supports(display: flex) handheld and (max-width: 400px);
@ -1204,7 +1204,7 @@ error: Ident
20 | @import url("narrow.css") SUPPORTS(display: flex) handheld and (max-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:20:45
|
20 | @import url("narrow.css") SUPPORTS(display: flex) handheld and (max-width: 400px);
@ -1408,7 +1408,7 @@ error: Ident
21 | @import url("fallback-layout.css") supports(not (display: flex));
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:21:59
|
21 | @import url("fallback-layout.css") supports(not (display: flex));
@ -4828,7 +4828,7 @@ error: Ident
108 | @import "test.css" supports(display: flex);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:108:38
|
108 | @import "test.css" supports(display: flex);
@ -4894,7 +4894,7 @@ error: Ident
109 | @import "test.css" supports(display: flex) screen and (orientation:landscape);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:109:38
|
109 | @import "test.css" supports(display: flex) screen and (orientation:landscape);
@ -5032,7 +5032,7 @@ error: Ident
110 | @import"test.css"supports(display: flex)screen and (orientation:landscape);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:110:36
|
110 | @import"test.css"supports(display: flex)screen and (orientation:landscape);
@ -5632,7 +5632,7 @@ error: Ident
128 | @import url("./test.css") supports(display: flex);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:128:45
|
128 | @import url("./test.css") supports(display: flex);
@ -5716,7 +5716,7 @@ error: Ident
129 | @import url("./test.css") supports(display: flex !important);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:129:45
|
129 | @import url("./test.css") supports(display: flex !important);
@ -5812,7 +5812,7 @@ error: Ident
130 | @import url("./test.css") supports(display: flex) screen and (min-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:130:45
|
130 | @import url("./test.css") supports(display: flex) screen and (min-width: 400px);
@ -6040,7 +6040,7 @@ error: Ident
132 | @import url("./test.css") layer(default);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:132:33
|
132 | @import url("./test.css") layer(default);
@ -6118,7 +6118,7 @@ error: Ident
133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:133:33
|
133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px);
@ -6154,7 +6154,7 @@ error: Ident
133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:133:60
|
133 | @import url("./test.css") layer(default) supports(display: flex) screen and (min-width: 400px);
@ -6340,7 +6340,7 @@ error: Ident
134 | @import url("./test.css") layer supports(display: flex) screen and (min-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:134:51
|
134 | @import url("./test.css") layer supports(display: flex) screen and (min-width: 400px);
@ -6532,7 +6532,7 @@ error: Ident
135 | @import url("./test.css") layer() supports(display: flex) screen and (min-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:135:53
|
135 | @import url("./test.css") layer() supports(display: flex) screen and (min-width: 400px);
@ -6772,7 +6772,7 @@ error: Ident
137 | @import url("http://example.com/style.css") supports(display: flex) screen and (min-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:137:63
|
137 | @import url("http://example.com/style.css") supports(display: flex) screen and (min-width: 400px);
@ -6940,7 +6940,7 @@ error: Ident
138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:138:32
|
138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px);
@ -6976,7 +6976,7 @@ error: Ident
138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:138:58
|
138 | @import url("./test.css")layer(default)supports(display: flex)screen and (min-width:400px);
@ -7282,7 +7282,7 @@ error: Ident
140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px );
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:140:42
|
140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px );
@ -7318,7 +7318,7 @@ error: Ident
140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px );
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:140:92
|
140 | @import url("./test.css") layer( default ) supports( display : flex ) screen and ( min-width : 400px );
@ -7486,7 +7486,7 @@ error: Ident
141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:141:33
|
141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX);
@ -7522,7 +7522,7 @@ error: Ident
141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:141:60
|
141 | @import url("./test.css") LAYER(DEFAULT) SUPPORTS(DISPLAY: FLEX) SCREEN AND (MIN-WIDTH: 400PX);
@ -7690,7 +7690,7 @@ error: Ident
142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:142:60
|
142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */);
@ -7726,7 +7726,7 @@ error: Ident
142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:142:153
|
142 | @import url("./test.css") /* Comment */ layer(/* Comment */default/* Comment */) /* Comment */ supports(/* Comment */display/* Comment */:/* Comment */ flex/* Comment */)/* Comment */ screen/* Comment */ and/* Comment */ (/* Comment */min-width/* Comment */: /* Comment */400px/* Comment */);
@ -8350,7 +8350,7 @@ error: Ident
149 | @import url("./import-with-supports.css") supports(display: flex);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:149:61
|
149 | @import url("./import-with-supports.css") supports(display: flex);
@ -8476,7 +8476,7 @@ error: Ident
150 | @import url("./import-with-supports.css") supports(((display: flex)));
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:150:63
|
150 | @import url("./import-with-supports.css") supports(((display: flex)));
@ -8560,7 +8560,7 @@ error: Ident
151 | @import url("./deep-import-with-supports.css") supports(display: flex);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:151:66
|
151 | @import url("./deep-import-with-supports.css") supports(display: flex);
@ -8644,7 +8644,7 @@ error: Ident
152 | @import url('./test.css') supports(display: grid);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:152:45
|
152 | @import url('./test.css') supports(display: grid);
@ -8728,7 +8728,7 @@ error: Ident
153 | @import url('./test.css') supports( display : grid );
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:153:54
|
153 | @import url('./test.css') supports( display : grid );
@ -8812,7 +8812,7 @@ error: Ident
154 | @import url("./import-with-supports-and-media.css") supports(display: flex) screen and (min-width: 400px);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:154:71
|
154 | @import url("./import-with-supports-and-media.css") supports(display: flex) screen and (min-width: 400px);
@ -8980,7 +8980,7 @@ error: Ident
155 | @import url("./test.css") layer(framework);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:155:33
|
155 | @import url("./test.css") layer(framework);
@ -9058,7 +9058,7 @@ error: Ident
156 | @import url("./import-multiple-with-layer.css") layer(default);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:156:55
|
156 | @import url("./import-multiple-with-layer.css") layer(default);
@ -9136,7 +9136,7 @@ error: Ident
157 | @import url("./import-unnamed-layer.css") layer(base);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:157:49
|
157 | @import url("./import-unnamed-layer.css") layer(base);
@ -9214,7 +9214,7 @@ error: Ident
158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:158:59
|
158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex);
@ -9250,7 +9250,7 @@ error: Ident
158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/import/input.css:158:86
|
158 | @import url("./import-with-layer-and-supports.css") layer(default) supports(display: flex);

View File

@ -155,6 +155,14 @@ error: SimpleBlock
13 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:6:5
|
6 | / from {
7 | | transform: translateX(0%);
8 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:6:5
|
@ -184,6 +192,12 @@ error: SimpleBlock
8 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:7:9
|
7 | transform: translateX(0%);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:7:9
|
@ -202,7 +216,7 @@ error: Ident
7 | transform: translateX(0%);
| ^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:7:20
|
7 | transform: translateX(0%);
@ -220,7 +234,7 @@ error: Ident
7 | transform: translateX(0%);
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:7:31
|
7 | transform: translateX(0%);
@ -238,6 +252,14 @@ error: Number
7 | transform: translateX(0%);
| ^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:10:5
|
10 | / to {
11 | | transform: translateX(100%);
12 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:10:5
|
@ -267,6 +289,12 @@ error: SimpleBlock
12 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:11:9
|
11 | transform: translateX(100%);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:11:9
|
@ -285,7 +313,7 @@ error: Ident
11 | transform: translateX(100%);
| ^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:11:20
|
11 | transform: translateX(100%);
@ -303,7 +331,7 @@ error: Ident
11 | transform: translateX(100%);
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:11:31
|
11 | transform: translateX(100%);
@ -372,6 +400,12 @@ error: SimpleBlock
20 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:5
|
16 | 0% { top: 0; left: 0; }
| ^^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:5
|
@ -402,6 +436,12 @@ error: SimpleBlock
16 | 0% { top: 0; left: 0; }
| ^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:10
|
16 | 0% { top: 0; left: 0; }
| ^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:10
|
@ -420,7 +460,7 @@ error: Ident
16 | 0% { top: 0; left: 0; }
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:15
|
16 | 0% { top: 0; left: 0; }
@ -432,6 +472,12 @@ error: Integer
16 | 0% { top: 0; left: 0; }
| ^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:18
|
16 | 0% { top: 0; left: 0; }
| ^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:18
|
@ -450,7 +496,7 @@ error: Ident
16 | 0% { top: 0; left: 0; }
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:16:24
|
16 | 0% { top: 0; left: 0; }
@ -462,6 +508,12 @@ error: Integer
16 | 0% { top: 0; left: 0; }
| ^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:17:5
|
17 | 30% { top: 50px; }
| ^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:17:5
|
@ -492,6 +544,12 @@ error: SimpleBlock
17 | 30% { top: 50px; }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:17:11
|
17 | 30% { top: 50px; }
| ^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:17:11
|
@ -510,7 +568,7 @@ error: Ident
17 | 30% { top: 50px; }
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:17:16
|
17 | 30% { top: 50px; }
@ -540,6 +598,12 @@ error: Ident
17 | 30% { top: 50px; }
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:18:5
|
18 | 68%, 72% { left: 50px; }
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:18:5
|
@ -588,6 +652,12 @@ error: SimpleBlock
18 | 68%, 72% { left: 50px; }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:18:16
|
18 | 68%, 72% { left: 50px; }
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:18:16
|
@ -606,7 +676,7 @@ error: Ident
18 | 68%, 72% { left: 50px; }
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:18:22
|
18 | 68%, 72% { left: 50px; }
@ -636,6 +706,12 @@ error: Ident
18 | 68%, 72% { left: 50px; }
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:5
|
19 | 100% { top: 100px; left: 100%; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:5
|
@ -666,6 +742,12 @@ error: SimpleBlock
19 | 100% { top: 100px; left: 100%; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:12
|
19 | 100% { top: 100px; left: 100%; }
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:12
|
@ -684,7 +766,7 @@ error: Ident
19 | 100% { top: 100px; left: 100%; }
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:17
|
19 | 100% { top: 100px; left: 100%; }
@ -714,6 +796,12 @@ error: Ident
19 | 100% { top: 100px; left: 100%; }
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:24
|
19 | 100% { top: 100px; left: 100%; }
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:24
|
@ -732,7 +820,7 @@ error: Ident
19 | 100% { top: 100px; left: 100%; }
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:19:30
|
19 | 100% { top: 100px; left: 100%; }
@ -895,6 +983,14 @@ error: SimpleBlock
44 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:27:5
|
27 | / from {
28 | | margin-left: 0px;
29 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:27:5
|
@ -924,6 +1020,12 @@ error: SimpleBlock
29 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:28:9
|
28 | margin-left: 0px;
| ^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:28:9
|
@ -942,7 +1044,7 @@ error: Ident
28 | margin-left: 0px;
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:28:22
|
28 | margin-left: 0px;
@ -972,6 +1074,15 @@ error: Ident
28 | margin-left: 0px;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:31:5
|
31 | / 50% {
32 | | margin-left: 110px;
33 | | opacity: 1;
34 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:31:5
|
@ -1009,6 +1120,12 @@ error: SimpleBlock
34 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:32:9
|
32 | margin-left: 110px;
| ^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:32:9
|
@ -1027,7 +1144,7 @@ error: Ident
32 | margin-left: 110px;
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:32:22
|
32 | margin-left: 110px;
@ -1057,6 +1174,12 @@ error: Ident
32 | margin-left: 110px;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:33:9
|
33 | opacity: 1;
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:33:9
|
@ -1075,7 +1198,7 @@ error: Ident
33 | opacity: 1;
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:33:18
|
33 | opacity: 1;
@ -1087,6 +1210,14 @@ error: Integer
33 | opacity: 1;
| ^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:36:5
|
36 | / 50% {
37 | | opacity: 0.9;
38 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:36:5
|
@ -1122,6 +1253,12 @@ error: SimpleBlock
38 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:37:9
|
37 | opacity: 0.9;
| ^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:37:9
|
@ -1140,7 +1277,7 @@ error: Ident
37 | opacity: 0.9;
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:37:18
|
37 | opacity: 0.9;
@ -1152,6 +1289,14 @@ error: Number
37 | opacity: 0.9;
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:40:5
|
40 | / to {
41 | | margin-left: 200px;
42 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:40:5
|
@ -1181,6 +1326,12 @@ error: SimpleBlock
42 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:41:9
|
41 | margin-left: 200px;
| ^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:41:9
|
@ -1199,7 +1350,7 @@ error: Ident
41 | margin-left: 200px;
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:41:22
|
41 | margin-left: 200px;
@ -1284,6 +1435,14 @@ error: SimpleBlock
54 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:47:5
|
47 | / fRoM {
48 | | transform: translateX(0%);
49 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:47:5
|
@ -1313,6 +1472,12 @@ error: SimpleBlock
49 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:48:9
|
48 | transform: translateX(0%);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:48:9
|
@ -1331,7 +1496,7 @@ error: Ident
48 | transform: translateX(0%);
| ^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:48:20
|
48 | transform: translateX(0%);
@ -1349,7 +1514,7 @@ error: Ident
48 | transform: translateX(0%);
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:48:31
|
48 | transform: translateX(0%);
@ -1367,6 +1532,14 @@ error: Number
48 | transform: translateX(0%);
| ^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:51:5
|
51 | / tO {
52 | | transform: translateX(100%);
53 | | }
| |_____^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/keyframe/input.css:51:5
|
@ -1396,6 +1569,12 @@ error: SimpleBlock
53 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:52:9
|
52 | transform: translateX(100%);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/keyframe/input.css:52:9
|
@ -1414,7 +1593,7 @@ error: Ident
52 | transform: translateX(100%);
| ^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:52:20
|
52 | transform: translateX(100%);
@ -1432,7 +1611,7 @@ error: Ident
52 | transform: translateX(100%);
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/keyframe/input.css:52:31
|
52 | transform: translateX(100%);

View File

@ -157,6 +157,15 @@ error: SimpleBlock
8 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:4:5
|
4 | / @keyframes slide-left {
5 | | from { translate: 0; }
6 | | to { translate: -100% 0; }
7 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:4:5
|
@ -200,6 +209,12 @@ error: SimpleBlock
7 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:5:9
|
5 | from { translate: 0; }
| ^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:5:9
|
@ -224,6 +239,12 @@ error: SimpleBlock
5 | from { translate: 0; }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:5:16
|
5 | from { translate: 0; }
| ^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/layer/input.css:5:16
|
@ -242,7 +263,7 @@ error: Ident
5 | from { translate: 0; }
| ^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:5:27
|
5 | from { translate: 0; }
@ -254,6 +275,12 @@ error: Integer
5 | from { translate: 0; }
| ^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:6:9
|
6 | to { translate: -100% 0; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:6:9
|
@ -278,6 +305,12 @@ error: SimpleBlock
6 | to { translate: -100% 0; }
| ^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:6:14
|
6 | to { translate: -100% 0; }
| ^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/layer/input.css:6:14
|
@ -296,7 +329,7 @@ error: Ident
6 | to { translate: -100% 0; }
| ^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:6:25
|
6 | to { translate: -100% 0; }
@ -314,7 +347,7 @@ error: Number
6 | to { translate: -100% 0; }
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:6:31
|
6 | to { translate: -100% 0; }
@ -389,6 +422,15 @@ error: SimpleBlock
15 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:11:5
|
11 | / @keyframes slide-left {
12 | | from { margin-left: 0; }
13 | | to { margin-left: -100%; }
14 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:11:5
|
@ -432,6 +474,12 @@ error: SimpleBlock
14 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:12:9
|
12 | from { margin-left: 0; }
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:12:9
|
@ -456,6 +504,12 @@ error: SimpleBlock
12 | from { margin-left: 0; }
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:12:16
|
12 | from { margin-left: 0; }
| ^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/layer/input.css:12:16
|
@ -474,7 +528,7 @@ error: Ident
12 | from { margin-left: 0; }
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:12:29
|
12 | from { margin-left: 0; }
@ -486,6 +540,12 @@ error: Integer
12 | from { margin-left: 0; }
| ^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:13:9
|
13 | to { margin-left: -100%; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:13:9
|
@ -510,6 +570,12 @@ error: SimpleBlock
13 | to { margin-left: -100%; }
| ^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:13:14
|
13 | to { margin-left: -100%; }
| ^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/layer/input.css:13:14
|
@ -528,7 +594,7 @@ error: Ident
13 | to { margin-left: -100%; }
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:13:27
|
13 | to { margin-left: -100%; }
@ -600,6 +666,12 @@ error: SimpleBlock
17 | .sidebar { animation: slide-left 300ms; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:17:12
|
17 | .sidebar { animation: slide-left 300ms; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:17:12
|
@ -624,7 +696,7 @@ error: Ident
17 | .sidebar { animation: slide-left 300ms; }
| ^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:17:23
|
17 | .sidebar { animation: slide-left 300ms; }
@ -636,7 +708,7 @@ error: Ident
17 | .sidebar { animation: slide-left 300ms; }
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:17:34
|
17 | .sidebar { animation: slide-left 300ms; }
@ -771,6 +843,12 @@ error: SimpleBlock
24 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:23:5
|
23 | strong { font-weight: bold; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:23:5
|
@ -831,6 +909,12 @@ error: SimpleBlock
23 | strong { font-weight: bold; }
| ^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:23:14
|
23 | strong { font-weight: bold; }
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:23:14
|
@ -855,7 +939,7 @@ error: Ident
23 | strong { font-weight: bold; }
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:23:27
|
23 | strong { font-weight: bold; }
@ -934,6 +1018,12 @@ error: SimpleBlock
32 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:27:5
|
27 | .title { font-weight: 100; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:27:5
|
@ -988,6 +1078,12 @@ error: SimpleBlock
27 | .title { font-weight: 100; }
| ^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:27:14
|
27 | .title { font-weight: 100; }
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:27:14
|
@ -1012,7 +1108,7 @@ error: Ident
27 | .title { font-weight: 100; }
| ^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:27:27
|
27 | .title { font-weight: 100; }
@ -1024,6 +1120,14 @@ error: Integer
27 | .title { font-weight: 100; }
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:29:5
|
29 | / @layer theme {
30 | | h1, h2 { color: maroon; }
31 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:29:5
|
@ -1075,6 +1179,12 @@ error: SimpleBlock
31 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:30:9
|
30 | h1, h2 { color: maroon; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:30:9
|
@ -1171,6 +1281,12 @@ error: SimpleBlock
30 | h1, h2 { color: maroon; }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:30:18
|
30 | h1, h2 { color: maroon; }
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:30:18
|
@ -1195,7 +1311,7 @@ error: Ident
30 | h1, h2 { color: maroon; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:30:25
|
30 | h1, h2 { color: maroon; }
@ -1258,6 +1374,12 @@ error: SimpleBlock
36 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:35:5
|
35 | [hidden] { display: none; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:35:5
|
@ -1318,6 +1440,12 @@ error: SimpleBlock
35 | [hidden] { display: none; }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:35:16
|
35 | [hidden] { display: none; }
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:35:16
|
@ -1342,7 +1470,7 @@ error: Ident
35 | [hidden] { display: none; }
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:35:25
|
35 | [hidden] { display: none; }
@ -1421,6 +1549,14 @@ error: SimpleBlock
46 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:39:5
|
39 | / @layer default {
40 | | p { margin-block: 0.75em; }
41 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:39:5
|
@ -1472,6 +1608,12 @@ error: SimpleBlock
41 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:40:9
|
40 | p { margin-block: 0.75em; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:40:9
|
@ -1532,6 +1674,12 @@ error: SimpleBlock
40 | p { margin-block: 0.75em; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:40:13
|
40 | p { margin-block: 0.75em; }
| ^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:40:13
|
@ -1556,7 +1704,7 @@ error: Ident
40 | p { margin-block: 0.75em; }
| ^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:40:27
|
40 | p { margin-block: 0.75em; }
@ -1586,6 +1734,14 @@ error: Ident
40 | p { margin-block: 0.75em; }
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:43:5
|
43 | / @layer theme {
44 | | p { color: #222; }
45 | | }
| |_____^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:43:5
|
@ -1637,6 +1793,12 @@ error: SimpleBlock
45 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:44:9
|
44 | p { color: #222; }
| ^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:44:9
|
@ -1697,6 +1859,12 @@ error: SimpleBlock
44 | p { color: #222; }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:44:13
|
44 | p { color: #222; }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:44:13
|
@ -1721,7 +1889,7 @@ error: Ident
44 | p { color: #222; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:44:20
|
44 | p { color: #222; }
@ -1800,6 +1968,12 @@ error: SimpleBlock
51 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:50:5
|
50 | blockquote { color: rebeccapurple; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/at-rule/layer/input.css:50:5
|
@ -1860,6 +2034,12 @@ error: SimpleBlock
50 | blockquote { color: rebeccapurple; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:50:18
|
50 | blockquote { color: rebeccapurple; }
| ^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/layer/input.css:50:18
|
@ -1884,7 +2064,7 @@ error: Ident
50 | blockquote { color: rebeccapurple; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/layer/input.css:50:25
|
50 | blockquote { color: rebeccapurple; }

View File

@ -80,6 +80,12 @@ error: SimpleBlock
6 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:2:5
|
2 | color: red;
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:2:5
|
@ -104,7 +110,7 @@ error: Ident
2 | color: red;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:2:12
|
2 | color: red;
@ -116,6 +122,14 @@ error: Ident
2 | color: red;
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:3:5
|
3 | / @nest & > .bar {
4 | | color: blue;
5 | | }
| |_____^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:3:5
|
@ -195,6 +209,12 @@ error: SimpleBlock
5 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:4:9
|
4 | color: blue;
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:4:9
|
@ -219,7 +239,7 @@ error: Ident
4 | color: blue;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:4:16
|
4 | color: blue;
@ -301,6 +321,12 @@ error: SimpleBlock
13 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:9:5
|
9 | color: red;
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:9:5
|
@ -325,7 +351,7 @@ error: Ident
9 | color: red;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:9:12
|
9 | color: red;
@ -337,6 +363,14 @@ error: Ident
9 | color: red;
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:10:5
|
10 | / @nest .parent & {
11 | | color: blue;
12 | | }
| |_____^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:10:5
|
@ -416,6 +450,12 @@ error: SimpleBlock
12 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:11:9
|
11 | color: blue;
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:11:9
|
@ -440,7 +480,7 @@ error: Ident
11 | color: blue;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:11:16
|
11 | color: blue;
@ -522,6 +562,12 @@ error: SimpleBlock
20 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:16:5
|
16 | color: red;
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:16:5
|
@ -546,7 +592,7 @@ error: Ident
16 | color: red;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:16:12
|
16 | color: red;
@ -558,6 +604,14 @@ error: Ident
16 | color: red;
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:17:5
|
17 | / @nest :not(&) {
18 | | color: blue;
19 | | }
| |_____^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:17:5
|
@ -649,6 +703,12 @@ error: SimpleBlock
19 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:18:9
|
18 | color: blue;
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:18:9
|
@ -673,7 +733,7 @@ error: Ident
18 | color: blue;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:18:16
|
18 | color: blue;
@ -758,6 +818,12 @@ error: SimpleBlock
31 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:23:5
|
23 | color: blue;
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:23:5
|
@ -782,7 +848,7 @@ error: Ident
23 | color: blue;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:23:12
|
23 | color: blue;
@ -794,6 +860,17 @@ error: Ident
23 | color: blue;
| ^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:25:5
|
25 | / @nest .bar & {
26 | | color: red;
27 | | &.baz {
28 | | color: green;
29 | | }
30 | | }
| |_____^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:25:5
|
@ -882,6 +959,12 @@ error: SimpleBlock
30 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:26:9
|
26 | color: red;
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:26:9
|
@ -906,7 +989,7 @@ error: Ident
26 | color: red;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:26:16
|
26 | color: red;
@ -918,6 +1001,14 @@ error: Ident
26 | color: red;
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:27:9
|
27 | / &.baz {
28 | | color: green;
29 | | }
| |_________^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:27:9
|
@ -985,6 +1076,12 @@ error: SimpleBlock
29 | | }
| |_________^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:28:13
|
28 | color: green;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/at-rule/nest/input.css:28:13
|
@ -1009,7 +1106,7 @@ error: Ident
28 | color: green;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/nest/input.css:28:20
|
28 | color: green;

View File

@ -82,6 +82,12 @@ error: SimpleBlock
3 | @page{margin: 1cm}
| ^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:3:7
|
3 | @page{margin: 1cm}
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:3:7
|
@ -100,7 +106,7 @@ error: Ident
3 | @page{margin: 1cm}
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:3:15
|
3 | @page{margin: 1cm}
@ -154,6 +160,12 @@ error: SimpleBlock
4 | @page {margin: 1cm}
| ^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:4:8
|
4 | @page {margin: 1cm}
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:4:8
|
@ -172,7 +184,7 @@ error: Ident
4 | @page {margin: 1cm}
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:4:16
|
4 | @page {margin: 1cm}
@ -226,6 +238,12 @@ error: SimpleBlock
5 | @page {margin: 1cm;}
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:5:8
|
5 | @page {margin: 1cm;}
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:5:8
|
@ -244,7 +262,7 @@ error: Ident
5 | @page {margin: 1cm;}
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:5:16
|
5 | @page {margin: 1cm;}
@ -322,6 +340,12 @@ error: SimpleBlock
6 | @page :first {margin: 2cm}
| ^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:6:15
|
6 | @page :first {margin: 2cm}
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:6:15
|
@ -340,7 +364,7 @@ error: Ident
6 | @page :first {margin: 2cm}
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:6:23
|
6 | @page :first {margin: 2cm}
@ -418,6 +442,12 @@ error: SimpleBlock
7 | @page :first {margin: 2cm;}
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:7:15
|
7 | @page :first {margin: 2cm;}
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:7:15
|
@ -436,7 +466,7 @@ error: Ident
7 | @page :first {margin: 2cm;}
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:7:23
|
7 | @page :first {margin: 2cm;}
@ -514,6 +544,12 @@ error: SimpleBlock
8 | @page :first{margin: 2cm;}
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:8:14
|
8 | @page :first{margin: 2cm;}
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:8:14
|
@ -532,7 +568,7 @@ error: Ident
8 | @page :first{margin: 2cm;}
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:8:22
|
8 | @page :first{margin: 2cm;}
@ -1001,6 +1037,12 @@ error: SimpleBlock
20 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:18:5
|
18 | @top-left {}
| ^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:18:5
|
@ -1025,6 +1067,12 @@ error: SimpleBlock
18 | @top-left {}
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:19:5
|
19 | @bottom-center {}
| ^^^^^^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:19:5
|
@ -1097,6 +1145,12 @@ error: SimpleBlock
21 | @page :left { @left-middle {}}
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:21:15
|
21 | @page :left { @left-middle {}}
| ^^^^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:21:15
|
@ -1169,6 +1223,12 @@ error: SimpleBlock
22 | @page :right{ @right-middle {}}
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:22:15
|
22 | @page :right{ @right-middle {}}
| ^^^^^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:22:15
|
@ -1241,6 +1301,12 @@ error: SimpleBlock
24 | @page :left { @bottom-left-corner {}}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:24:15
|
24 | @page :left { @bottom-left-corner {}}
| ^^^^^^^^^^^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:24:15
|
@ -1313,6 +1379,12 @@ error: SimpleBlock
25 | @page :right { @bottom-right-corner {}}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:25:16
|
25 | @page :right { @bottom-right-corner {}}
| ^^^^^^^^^^^^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:25:16
|
@ -1398,6 +1470,12 @@ error: SimpleBlock
29 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:27:5
|
27 | @bottom-left-corner {}
| ^^^^^^^^^^^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:27:5
|
@ -1422,6 +1500,12 @@ error: SimpleBlock
27 | @bottom-left-corner {}
| ^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:28:5
|
28 | @bottom-right-corner {}
| ^^^^^^^^^^^^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:28:5
|
@ -1867,6 +1951,12 @@ error: SimpleBlock
47 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:38:5
|
38 | color: green;
| ^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:38:5
|
@ -1885,7 +1975,7 @@ error: Ident
38 | color: green;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:38:12
|
38 | color: green;
@ -1897,6 +1987,15 @@ error: Ident
38 | color: green;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:40:5
|
40 | / @top-left {
41 | | content: "foo";
42 | | color: blue;
43 | | }
| |_____^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:40:5
|
@ -1931,6 +2030,12 @@ error: SimpleBlock
43 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:41:9
|
41 | content: "foo";
| ^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:41:9
|
@ -1949,7 +2054,7 @@ error: Ident
41 | content: "foo";
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:41:18
|
41 | content: "foo";
@ -1961,6 +2066,12 @@ error: Str
41 | content: "foo";
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:42:9
|
42 | color: blue;
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:42:9
|
@ -1979,7 +2090,7 @@ error: Ident
42 | color: blue;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:42:16
|
42 | color: blue;
@ -1991,6 +2102,14 @@ error: Ident
42 | color: blue;
| ^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:44:5
|
44 | / @top-right {
45 | | content: "bar";
46 | | }
| |_____^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:44:5
|
@ -2022,6 +2141,12 @@ error: SimpleBlock
46 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:45:9
|
45 | content: "bar";
| ^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:45:9
|
@ -2040,7 +2165,7 @@ error: Ident
45 | content: "bar";
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:45:18
|
45 | content: "bar";
@ -2125,6 +2250,12 @@ error: SimpleBlock
60 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:49:5
|
49 | color: green;
| ^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:49:5
|
@ -2143,7 +2274,7 @@ error: Ident
49 | color: green;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:49:12
|
49 | color: green;
@ -2155,6 +2286,15 @@ error: Ident
49 | color: green;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:51:5
|
51 | / @top-left {
52 | | content: "foo";
53 | | color: blue;
54 | | }
| |_____^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:51:5
|
@ -2189,6 +2329,12 @@ error: SimpleBlock
54 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:52:9
|
52 | content: "foo";
| ^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:52:9
|
@ -2207,7 +2353,7 @@ error: Ident
52 | content: "foo";
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:52:18
|
52 | content: "foo";
@ -2219,6 +2365,12 @@ error: Str
52 | content: "foo";
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:53:9
|
53 | color: blue;
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:53:9
|
@ -2237,7 +2389,7 @@ error: Ident
53 | color: blue;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:53:16
|
53 | color: blue;
@ -2249,6 +2401,14 @@ error: Ident
53 | color: blue;
| ^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:55:5
|
55 | / @top-right {
56 | | content: "bar";
57 | | }
| |_____^
error: AtRule
--> $DIR/tests/fixture/at-rule/page/input.css:55:5
|
@ -2280,6 +2440,12 @@ error: SimpleBlock
57 | | }
| |_____^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:56:9
|
56 | content: "bar";
| ^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:56:9
|
@ -2298,7 +2464,7 @@ error: Ident
56 | content: "bar";
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:56:18
|
56 | content: "bar";
@ -2310,6 +2476,12 @@ error: Str
56 | content: "bar";
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:59:5
|
59 | margin: 20px;
| ^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/page/input.css:59:5
|
@ -2328,7 +2500,7 @@ error: Ident
59 | margin: 20px;
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/page/input.css:59:13
|
59 | margin: 20px;

View File

@ -55,6 +55,12 @@ error: SimpleBlock
5 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/property/input.css:2:5
|
2 | syntax: '<color>';
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/property/input.css:2:5
|
@ -73,7 +79,7 @@ error: Ident
2 | syntax: '<color>';
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/property/input.css:2:13
|
2 | syntax: '<color>';
@ -85,6 +91,12 @@ error: Str
2 | syntax: '<color>';
| ^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/property/input.css:3:5
|
3 | inherits: false;
| ^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/property/input.css:3:5
|
@ -103,7 +115,7 @@ error: Ident
3 | inherits: false;
| ^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/property/input.css:3:15
|
3 | inherits: false;
@ -115,6 +127,12 @@ error: Ident
3 | inherits: false;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/at-rule/property/input.css:4:5
|
4 | initial-value: #c0ffee;
| ^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/at-rule/property/input.css:4:5
|
@ -133,7 +151,7 @@ error: Ident
4 | initial-value: #c0ffee;
| ^^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/at-rule/property/input.css:4:20
|
4 | initial-value: #c0ffee;

View File

@ -73,6 +73,12 @@ error: SimpleBlock
3 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/bom/input.css:2:5
|
2 | color: red;
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/bom/input.css:2:5
|
@ -97,7 +103,7 @@ error: Ident
2 | color: red;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/bom/input.css:2:12
|
2 | color: red;

View File

@ -81,6 +81,12 @@ error: SimpleBlock
4 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:3:14
|
3 | /* comment */color/* comment */:/* comment */red/* comment */;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/comment/input.css:3:14
|
@ -105,7 +111,7 @@ error: Ident
3 | /* comment */color/* comment */:/* comment */red/* comment */;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:3:46
|
3 | /* comment */color/* comment */:/* comment */red/* comment */;
@ -196,6 +202,12 @@ error: SimpleBlock
15 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:11:5
|
11 | color: black;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/comment/input.css:11:5
|
@ -220,7 +232,7 @@ error: Ident
11 | color: black;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:11:12
|
11 | color: black;
@ -232,6 +244,12 @@ error: Ident
11 | color: black;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:13:5
|
13 | background: red;
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/comment/input.css:13:5
|
@ -256,7 +274,7 @@ error: Ident
13 | background: red;
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:13:17
|
13 | background: red;
@ -338,6 +356,12 @@ error: SimpleBlock
21 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:19:5
|
19 | color: black;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/comment/input.css:19:5
|
@ -362,7 +386,7 @@ error: Ident
19 | color: black;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/comment/input.css:19:12
|
19 | color: black;

View File

@ -74,6 +74,12 @@ error: SimpleBlock
4 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:2:5
|
2 | --main-color: #06c;
| ^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dashed-ident/input.css:2:5
|
@ -98,7 +104,7 @@ error: DashedIdent
2 | --main-color: #06c;
| ^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:2:19
|
2 | --main-color: #06c;
@ -110,6 +116,12 @@ error: Hash { is_id: false, value: Atom('06c' type=inline), raw: Atom('06c' type
2 | --main-color: #06c;
| ^^^^
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:3:5
|
3 | --accent-color: #006;
| ^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dashed-ident/input.css:3:5
|
@ -134,7 +146,7 @@ error: DashedIdent
3 | --accent-color: #006;
| ^^^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:3:21
|
3 | --accent-color: #006;
@ -207,6 +219,12 @@ error: SimpleBlock
8 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:7:5
|
7 | --fg-color: blue;
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dashed-ident/input.css:7:5
|
@ -231,7 +249,7 @@ error: DashedIdent
7 | --fg-color: blue;
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:7:17
|
7 | --fg-color: blue;
@ -340,6 +358,12 @@ error: SimpleBlock
12 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:11:5
|
11 | color: var(--main-color);
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dashed-ident/input.css:11:5
|
@ -364,7 +388,7 @@ error: Ident
11 | color: var(--main-color);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:11:12
|
11 | color: var(--main-color);
@ -382,7 +406,7 @@ error: Ident
11 | color: var(--main-color);
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:11:16
|
11 | color: var(--main-color);
@ -424,6 +448,12 @@ error: DashedIdent
14 | @--custom {}
| ^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:14:10
|
14 | @--custom {}
| ^
error: WhiteSpace { value: Atom(' ' type=inline) }
--> $DIR/tests/fixture/dashed-ident/input.css:14:10
|
@ -466,6 +496,12 @@ error: DashedIdent
15 | @--library1-custom {}
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/dashed-ident/input.css:15:19
|
15 | @--library1-custom {}
| ^
error: WhiteSpace { value: Atom(' ' type=inline) }
--> $DIR/tests/fixture/dashed-ident/input.css:15:19
|

View File

@ -77,6 +77,12 @@ error: SimpleBlock
4 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/declaration-list/input.css:2:5
|
2 | prop1: value;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration-list/input.css:2:5
|
@ -101,7 +107,7 @@ error: Ident
2 | prop1: value;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration-list/input.css:2:12
|
2 | prop1: value;
@ -113,6 +119,12 @@ error: Ident
2 | prop1: value;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration-list/input.css:3:5
|
3 | prop2: value;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration-list/input.css:3:5
|
@ -137,7 +149,7 @@ error: Ident
3 | prop2: value;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration-list/input.css:3:12
|
3 | prop2: value;

View File

@ -89,6 +89,12 @@ error: SimpleBlock
25 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:2:5
|
2 | prop: value;
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:2:5
|
@ -113,7 +119,7 @@ error: Ident
2 | prop: value;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:2:11
|
2 | prop: value;
@ -125,6 +131,12 @@ error: Ident
2 | prop: value;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:3:5
|
3 | prop: (value);
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:3:5
|
@ -149,7 +161,7 @@ error: Ident
3 | prop: (value);
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:3:11
|
3 | prop: (value);
@ -161,7 +173,7 @@ error: SimpleBlock
3 | prop: (value);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:3:12
|
3 | prop: (value);
@ -173,6 +185,12 @@ error: Ident
3 | prop: (value);
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:4:5
|
4 | prop: {value};
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:4:5
|
@ -197,7 +215,7 @@ error: Ident
4 | prop: {value};
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:4:11
|
4 | prop: {value};
@ -209,7 +227,7 @@ error: SimpleBlock
4 | prop: {value};
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:4:12
|
4 | prop: {value};
@ -221,6 +239,12 @@ error: Ident
4 | prop: {value};
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:5:5
|
5 | prop: [value];
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:5:5
|
@ -245,7 +269,7 @@ error: Ident
5 | prop: [value];
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:5:11
|
5 | prop: [value];
@ -257,7 +281,7 @@ error: SimpleBlock
5 | prop: [value];
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:5:12
|
5 | prop: [value];
@ -269,6 +293,12 @@ error: Ident
5 | prop: [value];
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:6:5
|
6 | prop: fn(value);
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:6:5
|
@ -293,7 +323,7 @@ error: Ident
6 | prop: fn(value);
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:6:11
|
6 | prop: fn(value);
@ -311,7 +341,7 @@ error: Ident
6 | prop: fn(value);
| ^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:6:14
|
6 | prop: fn(value);
@ -323,6 +353,12 @@ error: Ident
6 | prop: fn(value);
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:7:5
|
7 | prop: fn(value)fn(value);
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:7:5
|
@ -347,7 +383,7 @@ error: Ident
7 | prop: fn(value)fn(value);
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:7:11
|
7 | prop: fn(value)fn(value);
@ -365,7 +401,7 @@ error: Ident
7 | prop: fn(value)fn(value);
| ^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:7:14
|
7 | prop: fn(value)fn(value);
@ -377,7 +413,7 @@ error: Ident
7 | prop: fn(value)fn(value);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:7:20
|
7 | prop: fn(value)fn(value);
@ -395,7 +431,7 @@ error: Ident
7 | prop: fn(value)fn(value);
| ^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:7:23
|
7 | prop: fn(value)fn(value);
@ -407,6 +443,12 @@ error: Ident
7 | prop: fn(value)fn(value);
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:8:5
|
8 | prop: value, value;
| ^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:8:5
|
@ -431,7 +473,7 @@ error: Ident
8 | prop: value, value;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:8:11
|
8 | prop: value, value;
@ -443,7 +485,7 @@ error: Ident
8 | prop: value, value;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:8:16
|
8 | prop: value, value;
@ -455,7 +497,7 @@ error: Delimiter
8 | prop: value, value;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:8:18
|
8 | prop: value, value;
@ -467,6 +509,12 @@ error: Ident
8 | prop: value, value;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:9:5
|
9 | prop: value ,value;
| ^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:9:5
|
@ -491,7 +539,7 @@ error: Ident
9 | prop: value ,value;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:9:11
|
9 | prop: value ,value;
@ -503,7 +551,7 @@ error: Ident
9 | prop: value ,value;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:9:17
|
9 | prop: value ,value;
@ -515,7 +563,7 @@ error: Delimiter
9 | prop: value ,value;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:9:18
|
9 | prop: value ,value;
@ -527,6 +575,12 @@ error: Ident
9 | prop: value ,value;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:10:5
|
10 | prop: value,value;
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:10:5
|
@ -551,7 +605,7 @@ error: Ident
10 | prop: value,value;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:10:11
|
10 | prop: value,value;
@ -563,7 +617,7 @@ error: Ident
10 | prop: value,value;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:10:16
|
10 | prop: value,value;
@ -575,7 +629,7 @@ error: Delimiter
10 | prop: value,value;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:10:17
|
10 | prop: value,value;
@ -587,6 +641,12 @@ error: Ident
10 | prop: value,value;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:11:5
|
11 | prop: value , value;
| ^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:11:5
|
@ -611,7 +671,7 @@ error: Ident
11 | prop: value , value;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:11:11
|
11 | prop: value , value;
@ -623,7 +683,7 @@ error: Ident
11 | prop: value , value;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:11:17
|
11 | prop: value , value;
@ -635,7 +695,7 @@ error: Delimiter
11 | prop: value , value;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:11:19
|
11 | prop: value , value;
@ -647,6 +707,12 @@ error: Ident
11 | prop: value , value;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:12:5
|
12 | prop: 100%100%;
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:12:5
|
@ -671,7 +737,7 @@ error: Ident
12 | prop: 100%100%;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:12:11
|
12 | prop: 100%100%;
@ -689,7 +755,7 @@ error: Number
12 | prop: 100%100%;
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:12:15
|
12 | prop: 100%100%;
@ -707,6 +773,12 @@ error: Number
12 | prop: 100%100%;
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:13:5
|
13 | prop: "string""string";
| ^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:13:5
|
@ -731,7 +803,7 @@ error: Ident
13 | prop: "string""string";
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:13:11
|
13 | prop: "string""string";
@ -743,7 +815,7 @@ error: Str
13 | prop: "string""string";
| ^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:13:19
|
13 | prop: "string""string";
@ -755,6 +827,12 @@ error: Str
13 | prop: "string""string";
| ^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:14:5
|
14 | prop: #ccc#ccc;
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:14:5
|
@ -779,7 +857,7 @@ error: Ident
14 | prop: #ccc#ccc;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:14:11
|
14 | prop: #ccc#ccc;
@ -797,7 +875,7 @@ error: HexColor
14 | prop: #ccc#ccc;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:14:15
|
14 | prop: #ccc#ccc;
@ -815,6 +893,12 @@ error: HexColor
14 | prop: #ccc#ccc;
| ^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:15:5
|
15 | prop: url(value)url(value);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:15:5
|
@ -839,7 +923,7 @@ error: Ident
15 | prop: url(value)url(value);
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:15:11
|
15 | prop: url(value)url(value);
@ -869,7 +953,7 @@ error: UrlValueRaw
15 | prop: url(value)url(value);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:15:21
|
15 | prop: url(value)url(value);
@ -899,6 +983,12 @@ error: UrlValueRaw
15 | prop: url(value)url(value);
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:16:5
|
16 | prop: (value)(value);
| ^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:16:5
|
@ -923,7 +1013,7 @@ error: Ident
16 | prop: (value)(value);
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:16:11
|
16 | prop: (value)(value);
@ -935,7 +1025,7 @@ error: SimpleBlock
16 | prop: (value)(value);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:16:12
|
16 | prop: (value)(value);
@ -947,7 +1037,7 @@ error: Ident
16 | prop: (value)(value);
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:16:18
|
16 | prop: (value)(value);
@ -959,7 +1049,7 @@ error: SimpleBlock
16 | prop: (value)(value);
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:16:19
|
16 | prop: (value)(value);
@ -971,6 +1061,12 @@ error: Ident
16 | prop: (value)(value);
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:17:5
|
17 | prop: {value}{value};
| ^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:17:5
|
@ -995,7 +1091,7 @@ error: Ident
17 | prop: {value}{value};
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:17:11
|
17 | prop: {value}{value};
@ -1007,7 +1103,7 @@ error: SimpleBlock
17 | prop: {value}{value};
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:17:12
|
17 | prop: {value}{value};
@ -1019,7 +1115,7 @@ error: Ident
17 | prop: {value}{value};
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:17:18
|
17 | prop: {value}{value};
@ -1031,7 +1127,7 @@ error: SimpleBlock
17 | prop: {value}{value};
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:17:19
|
17 | prop: {value}{value};
@ -1043,6 +1139,12 @@ error: Ident
17 | prop: {value}{value};
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:18:5
|
18 | prop: [value][value];
| ^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:18:5
|
@ -1067,7 +1169,7 @@ error: Ident
18 | prop: [value][value];
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:18:11
|
18 | prop: [value][value];
@ -1079,7 +1181,7 @@ error: SimpleBlock
18 | prop: [value][value];
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:18:12
|
18 | prop: [value][value];
@ -1091,7 +1193,7 @@ error: Ident
18 | prop: [value][value];
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:18:18
|
18 | prop: [value][value];
@ -1103,7 +1205,7 @@ error: SimpleBlock
18 | prop: [value][value];
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:18:19
|
18 | prop: [value][value];
@ -1115,6 +1217,12 @@ error: Ident
18 | prop: [value][value];
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:19:5
|
19 | prop: center/1em;
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:19:5
|
@ -1139,7 +1247,7 @@ error: Ident
19 | prop: center/1em;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:19:11
|
19 | prop: center/1em;
@ -1151,7 +1259,7 @@ error: Ident
19 | prop: center/1em;
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:19:17
|
19 | prop: center/1em;
@ -1163,7 +1271,7 @@ error: Delimiter
19 | prop: center/1em;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:19:18
|
19 | prop: center/1em;
@ -1193,6 +1301,12 @@ error: Ident
19 | prop: center/1em;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:20:5
|
20 | prop: center/ 1em;
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:20:5
|
@ -1217,7 +1331,7 @@ error: Ident
20 | prop: center/ 1em;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:20:11
|
20 | prop: center/ 1em;
@ -1229,7 +1343,7 @@ error: Ident
20 | prop: center/ 1em;
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:20:17
|
20 | prop: center/ 1em;
@ -1241,7 +1355,7 @@ error: Delimiter
20 | prop: center/ 1em;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:20:19
|
20 | prop: center/ 1em;
@ -1271,6 +1385,12 @@ error: Ident
20 | prop: center/ 1em;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:21:5
|
21 | prop: center /1em;
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:21:5
|
@ -1295,7 +1415,7 @@ error: Ident
21 | prop: center /1em;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:21:11
|
21 | prop: center /1em;
@ -1307,7 +1427,7 @@ error: Ident
21 | prop: center /1em;
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:21:18
|
21 | prop: center /1em;
@ -1319,7 +1439,7 @@ error: Delimiter
21 | prop: center /1em;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:21:19
|
21 | prop: center /1em;
@ -1349,6 +1469,12 @@ error: Ident
21 | prop: center /1em;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:22:5
|
22 | prop: center / 1em;
| ^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:22:5
|
@ -1373,7 +1499,7 @@ error: Ident
22 | prop: center / 1em;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:22:11
|
22 | prop: center / 1em;
@ -1385,7 +1511,7 @@ error: Ident
22 | prop: center / 1em;
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:22:18
|
22 | prop: center / 1em;
@ -1397,7 +1523,7 @@ error: Delimiter
22 | prop: center / 1em;
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:22:20
|
22 | prop: center / 1em;
@ -1427,6 +1553,12 @@ error: Ident
22 | prop: center / 1em;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:23:5
|
23 | c\olor: red;
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:23:5
|
@ -1451,7 +1583,7 @@ error: Ident
23 | c\olor: red;
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:23:13
|
23 | c\olor: red;
@ -1463,6 +1595,12 @@ error: Ident
23 | c\olor: red;
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:24:5
|
24 | prop/**/: big;
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:24:5
|
@ -1487,7 +1625,7 @@ error: Ident
24 | prop/**/: big;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:24:15
|
24 | prop/**/: big;
@ -1559,6 +1697,12 @@ error: SimpleBlock
27 | a { color: a/* ; */ b ; }
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:27:5
|
27 | a { color: a/* ; */ b ; }
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:27:5
|
@ -1583,7 +1727,7 @@ error: Ident
27 | a { color: a/* ; */ b ; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:27:12
|
27 | a { color: a/* ; */ b ; }
@ -1595,7 +1739,7 @@ error: Ident
27 | a { color: a/* ; */ b ; }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:27:21
|
27 | a { color: a/* ; */ b ; }
@ -1667,6 +1811,12 @@ error: SimpleBlock
28 | a{color:black}
| ^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:28:3
|
28 | a{color:black}
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:28:3
|
@ -1691,7 +1841,7 @@ error: Ident
28 | a{color:black}
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:28:9
|
28 | a{color:black}
@ -1773,6 +1923,12 @@ error: SimpleBlock
33 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:31:5
|
31 | color: black;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/declaration/input.css:31:5
|
@ -1797,7 +1953,7 @@ error: Ident
31 | color: black;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/declaration/input.css:31:12
|
31 | color: black;

View File

@ -73,6 +73,12 @@ error: SimpleBlock
3 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/delim/backslash/input.css:2:5
|
2 | color: \\ red \\ blue;
| ^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/delim/backslash/input.css:2:5
|
@ -97,7 +103,7 @@ error: Ident
2 | color: \\ red \\ blue;
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/delim/backslash/input.css:2:12
|
2 | color: \\ red \\ blue;
@ -109,7 +115,7 @@ error: Ident
2 | color: \\ red \\ blue;
| ^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/delim/backslash/input.css:2:15
|
2 | color: \\ red \\ blue;
@ -121,7 +127,7 @@ error: Ident
2 | color: \\ red \\ blue;
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/delim/backslash/input.css:2:19
|
2 | color: \\ red \\ blue;
@ -133,7 +139,7 @@ error: Ident
2 | color: \\ red \\ blue;
| ^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/delim/backslash/input.css:2:22
|
2 | color: \\ red \\ blue;

View File

@ -89,6 +89,12 @@ error: SimpleBlock
9 | | }
| |_^
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:2:5
|
2 | prop: 10px;
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dimension/basic/input.css:2:5
|
@ -113,7 +119,7 @@ error: Ident
2 | prop: 10px;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:2:11
|
2 | prop: 10px;
@ -143,6 +149,12 @@ error: Ident
2 | prop: 10px;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:3:5
|
3 | prop: .10px;
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dimension/basic/input.css:3:5
|
@ -167,7 +179,7 @@ error: Ident
3 | prop: .10px;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:3:11
|
3 | prop: .10px;
@ -197,6 +209,12 @@ error: Ident
3 | prop: .10px;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:4:5
|
4 | prop: 12.34px;
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dimension/basic/input.css:4:5
|
@ -221,7 +239,7 @@ error: Ident
4 | prop: 12.34px;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:4:11
|
4 | prop: 12.34px;
@ -251,6 +269,12 @@ error: Ident
4 | prop: 12.34px;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:5:5
|
5 | prop: 0000.000px;
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dimension/basic/input.css:5:5
|
@ -275,7 +299,7 @@ error: Ident
5 | prop: 0000.000px;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:5:11
|
5 | prop: 0000.000px;
@ -305,6 +329,12 @@ error: Ident
5 | prop: 0000.000px;
| ^^
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:6:5
|
6 | prop: 1px\\9;
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dimension/basic/input.css:6:5
|
@ -329,7 +359,7 @@ error: Ident
6 | prop: 1px\\9;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:6:11
|
6 | prop: 1px\\9;
@ -359,6 +389,12 @@ error: Ident
6 | prop: 1px\\9;
| ^^^^^
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:7:5
|
7 | prop: 1e;
| ^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dimension/basic/input.css:7:5
|
@ -383,7 +419,7 @@ error: Ident
7 | prop: 1e;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:7:11
|
7 | prop: 1e;
@ -413,6 +449,12 @@ error: Ident
7 | prop: 1e;
| ^
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:8:5
|
8 | prop: 1unknown;
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/dimension/basic/input.css:8:5
|
@ -437,7 +479,7 @@ error: Ident
8 | prop: 1unknown;
| ^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/dimension/basic/input.css:8:11
|
8 | prop: 1unknown;

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #112333 }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:5
|
1 | a { color: #112333 }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #112333 }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css:1:12
|
1 | a { color: #112333 }

View File

@ -154,6 +154,12 @@ error: SimpleBlock
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:58
|
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:58
|
@ -178,7 +184,7 @@ error: Ident
1 | div::before::after::selection::first-line::first-letter {color:red}
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css:1:64
|
1 | div::before::after::selection::first-line::first-letter {color:red}

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: +.10; }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:5
|
1 | a { width: +.10; }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: +.10; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css:1:12
|
1 | a { width: +.10; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: -.10%; }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:5
|
1 | a { width: -.10%; }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: -.10%; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-edvtxlXMemv5jnGeyueBA/input.css:1:12
|
1 | a { width: -.10%; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:5
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:17
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -112,7 +118,7 @@ error: Ident
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:21
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -124,7 +130,7 @@ error: Integer
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:24
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -136,7 +142,7 @@ error: Delimiter
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:26
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -148,7 +154,7 @@ error: Integer
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:27
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -160,7 +166,7 @@ error: Delimiter
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:29
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -172,7 +178,7 @@ error: Integer
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:33
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -184,7 +190,7 @@ error: Integer
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:35
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -196,7 +202,7 @@ error: Integer
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:37
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
@ -208,7 +214,7 @@ error: Integer
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css:1:39
|
1 | a { box-shadow: rgb(255, 0, 17) 0 0 1 inset }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { margin: 0 1 0 1 }
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:5
|
1 | a { margin: 0 1 0 1 }
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { margin: 0 1 0 1 }
| ^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:13
|
1 | a { margin: 0 1 0 1 }
@ -100,7 +106,7 @@ error: Integer
1 | a { margin: 0 1 0 1 }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:15
|
1 | a { margin: 0 1 0 1 }
@ -112,7 +118,7 @@ error: Integer
1 | a { margin: 0 1 0 1 }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:17
|
1 | a { margin: 0 1 0 1 }
@ -124,7 +130,7 @@ error: Integer
1 | a { margin: 0 1 0 1 }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/07tvJxvZrgDeTmptOclErA/input.css:1:19
|
1 | a { margin: 0 1 0 1 }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: 10p\32x }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:5
|
1 | a { value: 10p\32x }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: 10p\32x }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css:1:12
|
1 | a { value: 10p\32x }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:5
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:20
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
@ -100,7 +106,7 @@ error: Integer
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:22
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
@ -112,7 +118,7 @@ error: Integer
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:24
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
@ -124,7 +130,7 @@ error: Integer
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:26
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
@ -136,6 +142,12 @@ error: Integer
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:29
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:29
|
@ -160,7 +172,7 @@ error: Ident
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^^^^^^^^^^^^^^^^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:54
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
@ -172,7 +184,7 @@ error: Integer
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/12EwJCu6DsfOEJubQW9jLg/input.css:1:56
|
1 | a { border-radius: 1 2 3 4; border-top-right-radius: 5 6; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: id\65nt }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:5
|
1 | a { value: id\65nt }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: id\65nt }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/1naykwaIKZc6zuHRNIccLQ/input.css:1:12
|
1 | a { value: id\65nt }

View File

@ -82,6 +82,12 @@ error: SimpleBlock
1 | a:after { content: 'a\ b' }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:11
|
1 | a:after { content: 'a\ b' }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:11
|
@ -106,7 +112,7 @@ error: Ident
1 | a:after { content: 'a\ b' }
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/2nNBhRWO2cNcBJf09zDxjw/input.css:1:20
|
1 | a:after { content: 'a\ b' }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: \66n() }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:5
|
1 | a { value: \66n() }
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: \66n() }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/36qnNuIUvbIrMnJKDxwE5A/input.css:1:12
|
1 | a { value: \66n() }

View File

@ -34,6 +34,12 @@ error: SimpleBlock
1 | @keyframes test { from { color: red } to {} }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:19
|
1 | @keyframes test { from { color: red } to {} }
| ^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:19
|
@ -58,6 +64,12 @@ error: SimpleBlock
1 | @keyframes test { from { color: red } to {} }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:26
|
1 | @keyframes test { from { color: red } to {} }
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:26
|
@ -76,7 +88,7 @@ error: Ident
1 | @keyframes test { from { color: red } to {} }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:33
|
1 | @keyframes test { from { color: red } to {} }
@ -88,6 +100,12 @@ error: Ident
1 | @keyframes test { from { color: red } to {} }
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:39
|
1 | @keyframes test { from { color: red } to {} }
| ^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/375WZQg3bngUbuoHsqEIcA/input.css:1:39
|

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #ABCD }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:5
|
1 | a { color: #ABCD }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #ABCD }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css:1:12
|
1 | a { color: #ABCD }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #ABBBCCDD }
| ^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:5
|
1 | a { color: #ABBBCCDD }
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #ABBBCCDD }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css:1:12
|
1 | a { color: #ABBBCCDD }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #abcf }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:5
|
1 | a { color: #abcf }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #abcf }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3JGye8AhworwNFoUL1gKbg/input.css:1:12
|
1 | a { color: #abcf }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: 0.1%; }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:5
|
1 | a { width: 0.1%; }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: 0.1%; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3OV2jH0hrt2_2jOv6t4wvA/input.css:1:12
|
1 | a { width: 0.1%; }

View File

@ -34,6 +34,12 @@ error: SimpleBlock
1 | @keyframes name { 100% { color: red } }
| ^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:19
|
1 | @keyframes name { 100% { color: red } }
| ^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:19
|
@ -64,6 +70,12 @@ error: SimpleBlock
1 | @keyframes name { 100% { color: red } }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:26
|
1 | @keyframes name { 100% { color: red } }
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:26
|
@ -82,7 +94,7 @@ error: Ident
1 | @keyframes name { 100% { color: red } }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/3a1KXFwtncypOUCwQI7IAw/input.css:1:33
|
1 | @keyframes name { 100% { color: red } }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: \69 dent }
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:5
|
1 | a { value: \69 dent }
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: \69 dent }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/485Ns9qQHa89OJU5Lhjx-Q/input.css:1:12
|
1 | a { value: \69 dent }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: #\30hash }
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:5
|
1 | a { value: #\30hash }
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: #\30hash }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/486QvEO8dmLFsXYp6xgKVw/input.css:1:12
|
1 | a { value: #\30hash }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: 0.0; }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:5
|
1 | a { width: 0.0; }
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: 0.0; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4Tjjgepnha63E4UiXXDNEA/input.css:1:12
|
1 | a { width: 0.0; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { padding: 0 1 0px 1px }
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:5
|
1 | a { padding: 0 1 0px 1px }
| ^^^^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { padding: 0 1 0px 1px }
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:14
|
1 | a { padding: 0 1 0px 1px }
@ -100,7 +106,7 @@ error: Integer
1 | a { padding: 0 1 0px 1px }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:16
|
1 | a { padding: 0 1 0px 1px }
@ -112,7 +118,7 @@ error: Integer
1 | a { padding: 0 1 0px 1px }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:18
|
1 | a { padding: 0 1 0px 1px }
@ -142,7 +148,7 @@ error: Ident
1 | a { padding: 0 1 0px 1px }
| ^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css:1:22
|
1 | a { padding: 0 1 0px 1px }

View File

@ -34,6 +34,12 @@ error: SimpleBlock
1 | @k\65yframes abc { from {} }
| ^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/input.css:1:20
|
1 | @k\65yframes abc { from {} }
| ^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/4_H2sj_CNmUQHGctk7geQQ/input.css:1:20
|

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: 10\2cx }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/input.css:1:5
|
1 | a { value: 10\2cx }
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: 10\2cx }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/53OltIbJ-YBXtSKedVvYwA/input.css:1:12
|
1 | a { value: 10\2cx }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: +0.1; }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/input.css:1:5
|
1 | a { width: +0.1; }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: +0.1; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/5al65IRQbw_x4yG3ke74fQ/input.css:1:12
|
1 | a { width: +0.1; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: x\, }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/input.css:1:5
|
1 | a { value: x\, }
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: x\, }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/5cnGKjYPm1XBeqTmw3oCag/input.css:1:12
|
1 | a { value: x\, }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #1234 }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css:1:5
|
1 | a { color: #1234 }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #1234 }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css:1:12
|
1 | a { color: #1234 }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: white }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/input.css:1:5
|
1 | a { color: white }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: white }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/6WYwXsqP1SJOa-6oDBobzQ/input.css:1:12
|
1 | a { color: white }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: .0%; }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/input.css:1:5
|
1 | a { width: .0%; }
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: .0%; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/6aNPFn_YOBL4koYvV-g8pQ/input.css:1:12
|
1 | a { width: .0%; }

View File

@ -82,6 +82,12 @@ error: SimpleBlock
1 | a:after { content: 'a\62 c' }
| ^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/input.css:1:11
|
1 | a:after { content: 'a\62 c' }
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/input.css:1:11
|
@ -106,7 +112,7 @@ error: Ident
1 | a:after { content: 'a\62 c' }
| ^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/6kUhG0W7hwZxIuaCsZ7pHg/input.css:1:20
|
1 | a:after { content: 'a\62 c' }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #aabbccef }
| ^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/input.css:1:5
|
1 | a { color: #aabbccef }
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #aabbccef }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/7CK6ZYt4CWz7Ge5KWLKBYg/input.css:1:12
|
1 | a { color: #aabbccef }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: -.00%; }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/input.css:1:5
|
1 | a { width: -.00%; }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: -.00%; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/7YGXOizztR38f8fGB1DRaQ/input.css:1:12
|
1 | a { width: -.00%; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: 10x\2c }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/input.css:1:5
|
1 | a { value: 10x\2c }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: 10x\2c }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/866Law8W0FQas7QMxFjUbw/input.css:1:12
|
1 | a { value: 10x\2c }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: url(a\62c) }
| ^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/input.css:1:5
|
1 | a { value: url(a\62c) }
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: url(a\62c) }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/8Gs_Q4kYqijbgIQ6xIW8qw/input.css:1:12
|
1 | a { value: url(a\62c) }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #AABBCCFF }
| ^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/input.css:1:5
|
1 | a { color: #AABBCCFF }
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #AABBCCFF }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/9IIa-42s3YQFw8ilk39GdQ/input.css:1:12
|
1 | a { color: #AABBCCFF }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: +0.1%; }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/input.css:1:5
|
1 | a { width: +0.1%; }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: +0.1%; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/A3jvzrmJH_MIf_Uilsy4sg/input.css:1:12
|
1 | a { width: +0.1%; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: .10; }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/input.css:1:5
|
1 | a { width: .10; }
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: .10; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ACQUsGVQAmGzhMqBRmS6Mw/input.css:1:12
|
1 | a { width: .10; }

View File

@ -34,6 +34,12 @@ error: SimpleBlock
1 | @keyframes abc { \66rom {} }
| ^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/input.css:1:18
|
1 | @keyframes abc { \66rom {} }
| ^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/AMheAL_TeyLZpn77YdNTZA/input.css:1:18
|

View File

@ -34,6 +34,12 @@ error: SimpleBlock
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:19
|
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:19
|
@ -82,6 +88,12 @@ error: SimpleBlock
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:29
|
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:29
|
@ -100,7 +112,7 @@ error: Ident
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:36
|
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
@ -112,6 +124,12 @@ error: Ident
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:42
|
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:42
|
@ -160,6 +178,12 @@ error: SimpleBlock
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:53
|
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:53
|
@ -178,7 +202,7 @@ error: Ident
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ATZbhYBr7fOFJoZ4E2dwkA/input.css:1:60
|
1 | @keyframes name { 0%, 50% { color: red } 25%, 75% { color: blue } }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: x\2c() }
| ^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css:1:5
|
1 | a { value: x\2c() }
| ^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: x\2c() }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css:1:12
|
1 | a { value: x\2c() }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #abbbccff }
| ^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/input.css:1:5
|
1 | a { color: #abbbccff }
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #abbbccff }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Afm91-TMNbzd52HsPrCCNA/input.css:1:12
|
1 | a { color: #abbbccff }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #AABCCCDD }
| ^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/input.css:1:5
|
1 | a { color: #AABCCCDD }
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #AABCCCDD }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AigZ338AGwCqF4M9a3Quqw/input.css:1:12
|
1 | a { color: #AABCCCDD }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #aabccc }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css:1:5
|
1 | a { color: #aabccc }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #aabccc }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css:1:12
|
1 | a { color: #aabccc }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: x\2c }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/input.css:1:5
|
1 | a { value: x\2c }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: x\2c }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/AwZM5l5vBlyrbgG-Fk0_EQ/input.css:1:12
|
1 | a { value: x\2c }

View File

@ -34,6 +34,12 @@ error: SimpleBlock
1 | @keyframes a\,c { \66rom {} }
| ^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/input.css:1:19
|
1 | @keyframes a\,c { \66rom {} }
| ^^^^^^^^^
error: KeyframeBlock
--> $DIR/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/input.css:1:19
|

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: #\68 ash }
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/input.css:1:5
|
1 | a { value: #\68 ash }
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: #\68 ash }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/BKyQWW5j9vRP-kr41nqcjg/input.css:1:12
|
1 | a { value: #\68 ash }

View File

@ -58,6 +58,12 @@ error: SimpleBlock
1 | .selector { property: value\9; }
| ^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/input.css:1:13
|
1 | .selector { property: value\9; }
| ^^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/input.css:1:13
|
@ -82,7 +88,7 @@ error: Ident
1 | .selector { property: value\9; }
| ^^^^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/BrJMdtdKJAuIZIG5MVWUYA/input.css:1:23
|
1 | .selector { property: value\9; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: #0h\61sh }
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/input.css:1:5
|
1 | a { value: #0h\61sh }
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: #0h\61sh }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/C4I0cdQcSbpaGOS-V8fwew/input.css:1:12
|
1 | a { value: #0h\61sh }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #112234ff }
| ^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/input.css:1:5
|
1 | a { color: #112234ff }
| ^^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #112234ff }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/C6gS3Kl0KEwGsFaUUGXzFg/input.css:1:12
|
1 | a { color: #112234ff }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #ABBBCC }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css:1:5
|
1 | a { color: #ABBBCC }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #ABBBCC }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css:1:12
|
1 | a { color: #ABBBCC }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: 'a\62 c' }
| ^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/input.css:1:5
|
1 | a { value: 'a\62 c' }
| ^^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: 'a\62 c' }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/CqrYlHva8qUNgSPb8EwWjg/input.css:1:12
|
1 | a { value: 'a\62 c' }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: x\0 }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css:1:5
|
1 | a { value: x\0 }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: x\0 }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css:1:12
|
1 | a { value: x\0 }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: \2cx }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css:1:5
|
1 | a { value: \2cx }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: \2cx }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css:1:12
|
1 | a { value: \2cx }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #aabbcc }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/input.css:1:5
|
1 | a { color: #aabbcc }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #aabbcc }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/EJPa4WhTn_fRRrDiA2bczg/input.css:1:12
|
1 | a { color: #aabbcc }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #122233 }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/input.css:1:5
|
1 | a { color: #122233 }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #122233 }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/EYFn-trzBus37dDEvK1jUQ/input.css:1:12
|
1 | a { color: #122233 }

View File

@ -46,6 +46,12 @@ error: SimpleBlock
1 | @-moz-document url-prefix() { h1 { color: green } }
| ^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:31
|
1 | @-moz-document url-prefix() { h1 { color: green } }
| ^^^^^^^^^^^^^^^^^^^
error: Rule
--> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:31
|
@ -106,6 +112,12 @@ error: SimpleBlock
1 | @-moz-document url-prefix() { h1 { color: green } }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:36
|
1 | @-moz-document url-prefix() { h1 { color: green } }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:36
|
@ -130,7 +142,7 @@ error: Ident
1 | @-moz-document url-prefix() { h1 { color: green } }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/ElFW4lY06Cb-VFYtK0WX4A/input.css:1:43
|
1 | @-moz-document url-prefix() { h1 { color: green } }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: x\1 }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/input.css:1:5
|
1 | a { value: x\1 }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: x\1 }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/F-AbRDwG_3dGLhE7pzr5aA/input.css:1:12
|
1 | a { value: x\1 }

View File

@ -28,6 +28,12 @@ error: SimpleBlock
1 | @page { color: red; @top-left {} }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:9
|
1 | @page { color: red; @top-left {} }
| ^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:9
|
@ -46,7 +52,7 @@ error: Ident
1 | @page { color: red; @top-left {} }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:16
|
1 | @page { color: red; @top-left {} }
@ -58,6 +64,12 @@ error: Ident
1 | @page { color: red; @top-left {} }
| ^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:21
|
1 | @page { color: red; @top-left {} }
| ^^^^^^^^^^^^
error: AtRule
--> $DIR/tests/fixture/esbuild/misc/FTOGKsI_y1QxMNEu_Fgq7Q/input.css:1:21
|

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { color: #aabbcd }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/input.css:1:5
|
1 | a { color: #aabbcd }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { color: #aabbcd }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/FlqjDLebWxQvNIxKppBllw/input.css:1:12
|
1 | a { color: #aabbcd }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: #x\, }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/input.css:1:5
|
1 | a { value: #x\, }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: #x\, }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Fm7gvlx7uRyvrfzUC7rJxg/input.css:1:12
|
1 | a { value: #x\, }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { width: -.0; }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css:1:5
|
1 | a { width: -.0; }
| ^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { width: -.0; }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css:1:12
|
1 | a { width: -.0; }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: '\1' }
| ^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css:1:5
|
1 | a { value: '\1' }
| ^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: '\1' }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css:1:12
|
1 | a { value: '\1' }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: x\,() }
| ^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/input.css:1:5
|
1 | a { value: x\,() }
| ^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: x\,() }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/GpePX8ZJM8IP14hXFTKKxQ/input.css:1:12
|
1 | a { value: x\,() }

View File

@ -58,6 +58,12 @@ error: SimpleBlock
1 | .decl { a: b; c: d }
| ^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:9
|
1 | .decl { a: b; c: d }
| ^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:9
|
@ -82,7 +88,7 @@ error: Ident
1 | .decl { a: b; c: d }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:12
|
1 | .decl { a: b; c: d }
@ -94,6 +100,12 @@ error: Ident
1 | .decl { a: b; c: d }
| ^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:15
|
1 | .decl { a: b; c: d }
| ^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:15
|
@ -118,7 +130,7 @@ error: Ident
1 | .decl { a: b; c: d }
| ^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/Gt3Lw4L5Pe4aLLDPz9cxRg/input.css:1:18
|
1 | .decl { a: b; c: d }

View File

@ -64,6 +64,12 @@ error: SimpleBlock
1 | a { value: #h\61sh }
| ^^^^^^^^^^^^^^^^^^
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/input.css:1:5
|
1 | a { value: #h\61sh }
| ^^^^^^^^^^^^^^
error: StyleBlock
--> $DIR/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/input.css:1:5
|
@ -88,7 +94,7 @@ error: Ident
1 | a { value: #h\61sh }
| ^^^^^
error: Value
error: ComponentValue
--> $DIR/tests/fixture/esbuild/misc/HDNE73X9waUrBkTAzz-20g/input.css:1:12
|
1 | a { value: #h\61sh }

Some files were not shown because too many files have changed in this diff Show More