Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
d0iasm committed Sep 9, 2024
1 parent 4105321 commit b9d2f31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion core/src/renderer/css/cssom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ use core::iter::Peekable;
// |-- Vec<Declaration>
// |-- 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<QualifiedRule>,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions core/src/renderer/js/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down

0 comments on commit b9d2f31

Please sign in to comment.