/src/serenity/Userland/Libraries/LibWeb/CSS/StyleValues/ContentStyleValue.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> |
3 | | * Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org> |
4 | | * Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org> |
5 | | * Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech> |
6 | | * |
7 | | * SPDX-License-Identifier: BSD-2-Clause |
8 | | */ |
9 | | |
10 | | #include "ContentStyleValue.h" |
11 | | #include <LibWeb/CSS/StyleValues/StyleValueList.h> |
12 | | |
13 | | namespace Web::CSS { |
14 | | |
15 | | String ContentStyleValue::to_string() const |
16 | 0 | { |
17 | 0 | if (has_alt_text()) |
18 | 0 | return MUST(String::formatted("{} / {}", m_properties.content->to_string(), m_properties.alt_text->to_string())); |
19 | 0 | return m_properties.content->to_string(); |
20 | 0 | } |
21 | | |
22 | | } |