Skip to content

Commit 79453c8

Browse files
authored
Revert "fix: allow relative color syntax for rgb()" (#83)
Revert "fix: allow relative color syntax for rgb() & rgba() (#80)" This reverts commit a08c7ab.
1 parent a08c7ab commit 79453c8

File tree

2 files changed

+0
-143
lines changed

2 files changed

+0
-143
lines changed

data/patch.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,6 @@
584584
"comment": "missed, https://drafts.csswg.org/css-contain-3/#container-rule",
585585
"syntax": "not <query-in-parens> | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]"
586586
},
587-
"component-ident": {
588-
"syntax": "r | g | b | alpha"
589-
},
590587
"coord-box": {
591588
"syntax": "content-box | padding-box | border-box | fill-box | stroke-box | view-box"
592589
},
@@ -773,12 +770,6 @@
773770
"color()": {
774771
"syntax": "color( <colorspace-params> [ / [ <alpha-value> | none ] ]? )"
775772
},
776-
"rgb()": {
777-
"syntax": "rgb( <number>#{3} , <alpha-value>? ) | rgb( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? ) | rgb( from <color> [ <number> | <percentage> | <component-ident> | <calc()> ]{3} [ / [ <alpha-value> | <component-ident> | <calc()> ] ]? )"
778-
},
779-
"rgba()": {
780-
"syntax": "rgba( <number>#{3} , <alpha-value>? ) | rgba( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? ) | rgba( from <color> [ <number> | <percentage> | <component-ident> | <calc()> ]{3} [ / [ <alpha-value> | <component-ident> | <calc()> ] ]? )"
781-
},
782773
"colorspace-params": {
783774
"syntax": "[ <predefined-rgb-params> | <xyz-params>]"
784775
},

lib/__tests/lexer-relative-colors.js

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)