Skip to content

experiment around cssOM to replace csstree

pagedjs/pagedjs-cssom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The use of the tokenizer css.


Since we can’t use the cssOM to find things the browser doesnt know about, we need to transform the stylesheet before it goes to cssOM.

But maybe we want to write a better tokenizer system?


like

if 
token = : and token[i+1] = ::  then mix the token with the one after ?


so ":" + ":" + anything = pseudoelement

and pseudoElement will have

:: before + pseudo name {

}

Should we change this?


maybe looking for some tokens to build a new system would be interesting.




So let’s try to make a polyfill to end up with the same kind of data model from the css om api.


css om 
 

   css importrule => download the css from the import and add it where the css om exist
   css marginRule => marginboxes
   CSSPageRule => @page

   font-face. you need to rewrite the url for the fonts ? you need to find em?

About

experiment around cssOM to replace csstree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages