StyleProperty.h 455 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/FlyString.h>
  8. #include <LibWeb/CSS/PropertyID.h>
  9. namespace Web::CSS {
  10. enum class Important {
  11. No,
  12. Yes,
  13. };
  14. struct StyleProperty {
  15. ~StyleProperty();
  16. Important important { Important::No };
  17. CSS::PropertyID property_id;
  18. NonnullRefPtr<StyleValue const> value;
  19. FlyString custom_name {};
  20. };
  21. }