Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Non-deterministic rendering in fast renderer #51

@kabiroberai

Description

@kabiroberai

When rendering nested classes, the fast renderer determines which style takes precedence in a non-deterministic manner.

Eg.
xcode.css has the following definitions (simplified here for the sake of brevity):

.hljs-title {
  color: blue;
}

.hljs-class .hljs-title {
  color: purple;
}

The following JS snippet

class Foo

is converted to

<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Foo</span></span>

In the aforementioned snippet, Foo should turn purple, however in reality the renderer randomly picks between blue and purple, and the color it picks varies between app launches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions