mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:38:13 +00:00
LibWeb: Parse spread-distance and inset
parts of box-shadow
We do not actually use these when rendering the shadow yet.
This commit is contained in:
parent
c547bed13b
commit
e5b0369dfd
4 changed files with 52 additions and 11 deletions
|
@ -271,7 +271,11 @@ String BorderRadiusStyleValue::to_string() const
|
|||
|
||||
String BoxShadowStyleValue::to_string() const
|
||||
{
|
||||
return String::formatted("{} {} {} {}", m_offset_x.to_string(), m_offset_y.to_string(), m_blur_radius.to_string(), m_color.to_string());
|
||||
StringBuilder builder;
|
||||
builder.appendff("{} {} {} {} {}", m_color.to_string(), m_offset_x.to_string(), m_offset_y.to_string(), m_blur_radius.to_string(), m_spread_distance.to_string());
|
||||
if (m_placement == BoxShadowPlacement::Inner)
|
||||
builder.append(" inset");
|
||||
return builder.to_string();
|
||||
}
|
||||
|
||||
void CalculatedStyleValue::CalculationResult::add(CalculationResult const& other, Layout::Node const* layout_node, Length const& percentage_basis)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue