def return_for_single_tag(cssdata):
    """Build attribute value for a style tag

    return rule text or empty string
    """
    if list(cssdata):
        return list(cssdata)[0].style.getCssText()
    else:
        return ""