mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Implement ::details-content
pseudo element
Details' contents matches a new details-content pseudo element. Further work is required to make this pseudo-element behave per spec. This pseudo should be element-backed per https://drafts.csswg.org/css-pseudo/#element-backed
This commit is contained in:
parent
2249f09267
commit
b17bbe6d1f
Notes:
github-actions[bot]
2024-12-06 07:17:31 +00:00
Author: https://github.com/lukewarlow
Commit: b17bbe6d1f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2669
Reviewed-by: https://github.com/tcl3 ✅
7 changed files with 89 additions and 3 deletions
|
@ -520,6 +520,8 @@ StringView Selector::PseudoElement::name(Selector::PseudoElement::Type pseudo_el
|
|||
return "backdrop"sv;
|
||||
case Selector::PseudoElement::Type::FileSelectorButton:
|
||||
return "file-selector-button"sv;
|
||||
case Selector::PseudoElement::Type::DetailsContent:
|
||||
return "details-content"sv;
|
||||
case Selector::PseudoElement::Type::KnownPseudoElementCount:
|
||||
break;
|
||||
case Selector::PseudoElement::Type::UnknownWebKit:
|
||||
|
@ -560,6 +562,8 @@ Optional<Selector::PseudoElement> Selector::PseudoElement::from_string(FlyString
|
|||
return Selector::PseudoElement { Selector::PseudoElement::Type::Backdrop };
|
||||
} else if (name.equals_ignoring_ascii_case("file-selector-button"sv)) {
|
||||
return Selector::PseudoElement { Selector::PseudoElement::Type::FileSelectorButton };
|
||||
} else if (name.equals_ignoring_ascii_case("details-content"sv)) {
|
||||
return Selector::PseudoElement { Selector::PseudoElement::Type::DetailsContent };
|
||||
} else if (name.equals_ignoring_ascii_case("-webkit-slider-runnable-track"sv)) {
|
||||
return Selector::PseudoElement { Selector::PseudoElement::Type::SliderRunnableTrack };
|
||||
} else if (name.equals_ignoring_ascii_case("-webkit-slider-thumb"sv)) {
|
||||
|
|
|
@ -42,6 +42,7 @@ public:
|
|||
SliderThumb,
|
||||
Backdrop,
|
||||
FileSelectorButton,
|
||||
DetailsContent,
|
||||
|
||||
// Keep this last.
|
||||
KnownPseudoElementCount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue