Speed of CSS

后端 未结 4 620
逝去的感伤
逝去的感伤 2020-12-15 07:06

This is just a question to help me understand CSS rendering better.

Lets say we have a million lines of this.

4条回答
  •  我在风中等你
    2020-12-15 07:36

    I would say this depends on the browser. Nothing beats an experiment, in this case a simple JavaScript would probably do.

    Update: I meant to do something like this:

    
    
    
        
        CSS Speed Test
        
        
    
    
        

    …but the time differences caused by different selectors appear to be too small to measure, just as annakata said.

提交回复
热议问题