Skip to content

Commit 8be0dc6

Browse files
authored
Auto merge of #322 - tiaanl:fix-csswg-urls, r=emilio
Fix csswg urls The github mirror should not become the new official place for the csswg specifications, so changing the urls back to drafts.csswg.org/css*
2 parents c5104c2 + fb10dbe commit 8be0dc6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/color.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
1313

1414
const OPAQUE: f32 = 1.0;
1515

16-
/// https://w3c.github.io/csswg-drafts/css-color-4/#serializing-alpha-values
16+
/// https://drafts.csswg.org/css-color-4/#serializing-alpha-values
1717
#[inline]
1818
fn serialize_alpha(dest: &mut impl fmt::Write, alpha: f32, legacy_syntax: bool) -> fmt::Result {
1919
// If the alpha component is full opaque, don't emit the alpha value in CSS.
@@ -352,24 +352,24 @@ impl_lch_like!(Lch, "lch");
352352
impl_lch_like!(Oklch, "oklch");
353353

354354
/// A Predefined color space specified in:
355-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined
355+
/// https://drafts.csswg.org/css-color-4/#predefined
356356
#[derive(Clone, Copy, PartialEq, Debug)]
357357
pub enum PredefinedColorSpace {
358-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-sRGB
358+
/// https://drafts.csswg.org/css-color-4/#predefined-sRGB
359359
Srgb,
360-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-sRGB-linear
360+
/// https://drafts.csswg.org/css-color-4/#predefined-sRGB-linear
361361
SrgbLinear,
362-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-display-p3
362+
/// https://drafts.csswg.org/css-color-4/#predefined-display-p3
363363
DisplayP3,
364-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-a98-rgb
364+
/// https://drafts.csswg.org/css-color-4/#predefined-a98-rgb
365365
A98Rgb,
366-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-prophoto-rgb
366+
/// https://drafts.csswg.org/css-color-4/#predefined-prophoto-rgb
367367
ProphotoRgb,
368-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-rec2020
368+
/// https://drafts.csswg.org/css-color-4/#predefined-rec2020
369369
Rec2020,
370-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-xyz
370+
/// https://drafts.csswg.org/css-color-4/#predefined-xyz
371371
XyzD50,
372-
/// https://w3c.github.io/csswg-drafts/css-color-4/#predefined-xyz
372+
/// https://drafts.csswg.org/css-color-4/#predefined-xyz
373373
XyzD65,
374374
}
375375

@@ -418,7 +418,7 @@ impl ToCss for PredefinedColorSpace {
418418
}
419419

420420
/// A color specified by the color() function.
421-
/// https://w3c.github.io/csswg-drafts/css-color-4/#color-function
421+
/// https://drafts.csswg.org/css-color-4/#color-function
422422
#[derive(Clone, Copy, PartialEq, Debug)]
423423
pub struct ColorFunction {
424424
/// The color space for this color.

0 commit comments

Comments
 (0)