mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibWeb: Turn <td align> into CSS text-align
Note that align=center and align=middle both behave like the <center> element, and not like text-align:center.
This commit is contained in:
parent
07ccaa1934
commit
7e8945601a
Notes:
sideshowbarker
2024-07-19 05:40:23 +09:00
Author: https://github.com/awesomekling
Commit: 7e8945601a
4 changed files with 15 additions and 0 deletions
|
@ -55,6 +55,11 @@ void StyleProperties::set_property(CSS::PropertyID id, NonnullRefPtr<StyleValue>
|
|||
m_property_values.set((unsigned)id, move(value));
|
||||
}
|
||||
|
||||
void StyleProperties::set_property(CSS::PropertyID id, const StringView& value)
|
||||
{
|
||||
m_property_values.set((unsigned)id, StringStyleValue::create(value));
|
||||
}
|
||||
|
||||
Optional<NonnullRefPtr<StyleValue>> StyleProperties::property(CSS::PropertyID id) const
|
||||
{
|
||||
auto it = m_property_values.find((unsigned)id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue