diff options
author | bptato <nincsnevem662@gmail.com> | 2021-12-18 13:49:52 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-12-18 13:49:52 +0100 |
commit | a125464839927fd04f761c530e90888e340758ef (patch) | |
tree | 7c2939cbf9e4c4c461a27505883761d6b3d52fb3 /src/html/dom.nim | |
parent | e4d4e1fada5fe734510d100d073e20b5343fe46e (diff) | |
download | chawan-a125464839927fd04f761c530e90888e340758ef.tar.gz |
Rework cascading algorithm
Diffstat (limited to 'src/html/dom.nim')
-rw-r--r-- | src/html/dom.nim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 3de1847c..02258296 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -65,9 +65,8 @@ type id*: string classList*: seq[string] attributes*: Table[string, string] - cssvalues*: CSSComputedValues - cssvalues_before*: CSSComputedValues - cssvalues_after*: CSSComputedValues + css*: CSSSpecifiedValues + pseudo*: array[low(PseudoElem)..high(PseudoElem), CSSSpecifiedValues] hover*: bool cssapplied*: bool rendered*: bool @@ -281,7 +280,7 @@ func newHtmlElement*(tagType: TagType): HTMLElement = result.nodeType = ELEMENT_NODE result.tagType = tagType - result.cssvalues.rootProperties() + result.css = rootProperties() func newDocument*(): Document = new(result) |