From b9d2f3155d8329ff6c5f39add9f2ed3f7e60248e Mon Sep 17 00:00:00 2001 From: Asami Doi Date: Mon, 9 Sep 2024 21:34:53 +0200 Subject: [PATCH] update links --- core/src/renderer/css/cssom.rs | 7 ++++++- core/src/renderer/js/token.rs | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/core/src/renderer/css/cssom.rs b/core/src/renderer/css/cssom.rs index 03fe707..192db21 100644 --- a/core/src/renderer/css/cssom.rs +++ b/core/src/renderer/css/cssom.rs @@ -40,8 +40,9 @@ use core::iter::Peekable; // |-- Vec // |-- color: red -#[derive(Debug, Clone, PartialEq)] /// https://www.w3.org/TR/cssom-1/#cssstylesheet +/// https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule +#[derive(Debug, Clone, PartialEq)] pub struct StyleSheet { /// https://drafts.csswg.org/cssom/#dom-cssstylesheet-cssrules pub rules: Vec, @@ -91,6 +92,8 @@ impl AtRule { #[derive(Debug, Clone, PartialEq)] /// https://www.w3.org/TR/css-syntax-3/#qualified-rule /// https://www.w3.org/TR/css-syntax-3/#style-rules +/// https://www.w3.org/TR/cssom-1/#cssstylerule +/// https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule pub struct QualifiedRule { // TODO: support multiple selectors /// https://www.w3.org/TR/selectors-4/#typedef-selector-list @@ -139,6 +142,8 @@ pub enum Selector { #[derive(Debug, Clone, PartialEq)] /// https://www.w3.org/TR/css-syntax-3/#declaration +/// https://www.w3.org/TR/cssom-1/#the-cssstyledeclaration-interface +/// https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration pub struct Declaration { pub property: String, pub value: ComponentValue, diff --git a/core/src/renderer/js/token.rs b/core/src/renderer/js/token.rs index da18b1d..ff0a09a 100644 --- a/core/src/renderer/js/token.rs +++ b/core/src/renderer/js/token.rs @@ -8,15 +8,15 @@ static RESERVED_WORDS: [&str; 3] = ["var", "function", "return"]; #[derive(Debug, Clone, PartialEq, Eq)] pub enum Token { - /// https://262.ecma-international.org/12.0/#sec-identifier-names + /// https://262.ecma-international.org/#sec-identifier-names Identifier(String), - /// https://262.ecma-international.org/12.0/#sec-keywords-and-reserved-words + /// https://262.ecma-international.org/#sec-keywords-and-reserved-words Keyword(String), - /// https://262.ecma-international.org/12.0/#sec-punctuators + /// https://262.ecma-international.org/#sec-punctuators Punctuator(char), - /// https://262.ecma-international.org/12.0/#sec-literals-string-literals + /// https://262.ecma-international.org/#sec-literals-string-literals StringLiteral(String), - /// https://262.ecma-international.org/12.0/#sec-literals-numeric-literals + /// https://262.ecma-international.org/#sec-literals-numeric-literals Number(u64), }