mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
LibWeb: Support CSSStyleDeclaration.cssFloat
Unlike all the other CSS properties, 'float' is special, and can only be accessed via 'cssFloat' on CSSStyleDeclaration. So this patch adds support for that. 1 point on ACID3! :^)
This commit is contained in:
parent
19b5033dc4
commit
b45ed48ca7
Notes:
sideshowbarker
2024-07-17 18:24:59 +09:00
Author: https://github.com/awesomekling
Commit: b45ed48ca7
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ namespace Web::Bindings {
|
|||
|
||||
static CSS::PropertyID property_id_from_name(StringView name)
|
||||
{
|
||||
// FIXME: Perhaps this should go in the code generator.
|
||||
if (name == "cssFloat"sv)
|
||||
return CSS::PropertyID::Float;
|
||||
|
||||
if (auto property_id = CSS::property_id_from_camel_case_string(name); property_id != CSS::PropertyID::Invalid)
|
||||
return property_id;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue