src/main/java/org/fit/layout/cssbox/BoxNode.java
public String getEfficientColor()
    {
        Box box = getBox(); 
        do
        {
            if (box instanceof ElementBox)
            {
                String color = ((ElementBox) box).getStylePropertyValue("color");
                if (!color.equals(""))
                    return color;
            }
            box = box.getParent();
        } while (box != null);
        return "";
    }
public String getEfficientColor()
    {
        Box box = getBox(); 
        do
        {
            if (box instanceof ElementBox)
            {
                String color = ((ElementBox) box).getStylePropertyValue("color");
                if (!color.equals(""))
                    return color;
            }
            box = box.getParent();
        } while (box != null);
        return "";
    }
Get the effective text color. If the text color is set, it is returned.
When the color is not set, the parent boxes are considered.
@return the background color string