mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
LibWeb: Support list-style-position
This moves the ::marker inside of <summary> actually inside. :^)
This commit is contained in:
parent
ee7282cbe4
commit
293ece2292
10 changed files with 34 additions and 8 deletions
|
@ -15,7 +15,7 @@ class ListItemMarkerBox final : public Box {
|
|||
JS_CELL(ListItemMarkerBox, Box);
|
||||
|
||||
public:
|
||||
explicit ListItemMarkerBox(DOM::Document&, CSS::ListStyleType, size_t index, NonnullRefPtr<CSS::StyleProperties>);
|
||||
explicit ListItemMarkerBox(DOM::Document&, CSS::ListStyleType, CSS::ListStylePosition, size_t index, NonnullRefPtr<CSS::StyleProperties>);
|
||||
virtual ~ListItemMarkerBox() override;
|
||||
|
||||
DeprecatedString const& text() const { return m_text; }
|
||||
|
@ -23,12 +23,14 @@ public:
|
|||
virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
|
||||
|
||||
CSS::ListStyleType list_style_type() const { return m_list_style_type; }
|
||||
CSS::ListStylePosition list_style_position() const { return m_list_style_position; }
|
||||
|
||||
private:
|
||||
virtual bool is_list_item_marker_box() const final { return true; }
|
||||
virtual bool can_have_children() const override { return false; }
|
||||
|
||||
CSS::ListStyleType m_list_style_type { CSS::ListStyleType::None };
|
||||
CSS::ListStylePosition m_list_style_position { CSS::ListStylePosition::Outside };
|
||||
size_t m_index;
|
||||
|
||||
DeprecatedString m_text {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue