Skip to content

Commit 58d35ee

Browse files
committed
Link to the Editor’s Draft
1 parent a11b0fd commit 58d35ee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rust-cssparser
66
[Documentation](https://servo.github.io/rust-cssparser/cssparser/index.html)
77

88
Rust implementation of
9-
[CSS Syntax Module Level 3](http://www.w3.org/TR/css-syntax-3/)
9+
[CSS Syntax Module Level 3](https://drafts.csswg.org/css-syntax/)
1010

1111

1212
Overview
@@ -43,7 +43,7 @@ Parsing CSS involves a series of steps:
4343

4444
* The last step of a full CSS parser is
4545
parsing the remaining component values
46-
into [Selectors](http://www.w3.org/TR/selectors/),
46+
into [Selectors](https://drafts.csswg.org/selectors/),
4747
specific CSS properties, etc.
4848

4949
By design, rust-cssparser does not do this last step

src/color.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ fn parse_color_function(name: &str, arguments: &mut Parser) -> Result<Color, ()>
322322
try!(arguments.expect_comma());
323323
let lightness = (try!(arguments.expect_percentage())).max(0.).min(1.);
324324

325-
// http://www.w3.org/TR/css3-color/#hsl-color
325+
// https://drafts.csswg.org/css-color/#hsl-color
326326
fn hue_to_rgb(m1: f32, m2: f32, mut h: f32) -> f32 {
327327
if h < 0. { h += 1. }
328328
if h > 1. { h -= 1. }

src/from_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use encoding::{EncodingRef, DecoderTrap, decode};
1818
/// * `protocol_encoding`: The encoding label, if any, defined by HTTP or equivalent protocol.
1919
/// (e.g. via the `charset` parameter of the `Content-Type` header.)
2020
/// * `environment_encoding`: An optional `Encoding` object for the [environment encoding]
21-
/// (http://www.w3.org/TR/css-syntax/#environment-encoding), if any.
21+
/// (https://drafts.csswg.org/css-syntax/#environment-encoding), if any.
2222
///
2323
/// Returns a 2-tuple of a decoded Unicode string and the `Encoding` object that was used.
2424
pub fn decode_stylesheet_bytes(css: &[u8], protocol_encoding_label: Option<&str>,

0 commit comments

Comments
 (0)