Skip to content

Commit

Permalink
Enable conic gradient parsing for servo (#18)
Browse files Browse the repository at this point in the history
This was disabled in a pretty sneaky way. Servo can easily render
these with WebRender, so enable them.
  • Loading branch information
mrobinson authored and Loirooriol committed Apr 15, 2024
1 parent 8176a0a commit 11ba767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion style/values/specified/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ impl Gradient {
AngleOrPercentage::parse_with_unitless,
)?;

if cfg!(feature = "servo") || items.len() < 2 {
if items.len() < 2 {
return Err(input.new_custom_error(StyleParseErrorKind::UnspecifiedError));
}

Expand Down

0 comments on commit 11ba767

Please sign in to comment.