mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibWeb: Reimplement the <style> element following the spec
We now follow the "update a style block" algorithm from the HTML spec instead of using the ad-hoc CSSLoader mechanism. This necessitated improving our StyleSheet and CSSStyleSheet classes as well, so that's baked into this commit.
This commit is contained in:
parent
6cda24097b
commit
d462a6720a
Notes:
sideshowbarker
2024-07-18 03:19:42 +09:00
Author: https://github.com/awesomekling
Commit: d462a6720a
7 changed files with 163 additions and 24 deletions
|
@ -26,6 +26,8 @@ public:
|
|||
}
|
||||
|
||||
void add_sheet(NonnullRefPtr<CSSStyleSheet>);
|
||||
void remove_sheet(CSSStyleSheet&);
|
||||
|
||||
const NonnullRefPtrVector<CSSStyleSheet>& sheets() const { return m_sheets; }
|
||||
|
||||
RefPtr<CSSStyleSheet> item(size_t index) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue