import { default } from "https://deno.land/x/ogone@revb3/src/classes/css2/Rules.ts";
class Rules that will define its own selector by fetching it into the parent Rule
Constructors
Properties
all the properties used inside the current rule
this is an augmented interface but the querySelector is type checked and also the children are type checked
when a rule should implement a trait traits will only check if a property is used or not
Methods
method to transform the & token to the parent selector
start getting all the properties of the current rule those will be saved into the data object
get all pseudo properties of the rule
usage:
div {
color::media(green; red: 400px);
}
where color as for default green and red when the min-width: 400px
saves all the defined variables into the current document
returns the output of the current rule
save the current rule if the property isConst or isExport is true