mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
The spec requires us to store properties in their shorthand-expanded form and in the "specified" order, removing duplicates prefering based on "cascading order". We already enforced this in `set_property` but not at creation time (e.g. in stylesheets) or in `set_css_text` (e.g. updating style attribute). This commit enforces the spec requirements at all the relevant points. We no longer include logical properties in the return value of `getComputedStyle` as they are mapped to their physical equivalents in `StyleComputer::for_each_property_expanding_shorthands`, but resolving that requires a relatively large rework of how we handle logical properties, (namely moving when we map them to their physical equivalents from parse time to style computation time). This also exposes two false positive tests in wpt-import/css/cssom/border-shorthand-serialization.html related to us not yet supporting the border-image css property. |
||
|---|---|---|
| .. | ||
| Assets | ||
| Crash | ||
| Fixtures | ||
| Layout | ||
| Ref | ||
| Screenshot | ||
| Text | ||
| add_libweb_test.py | ||
| CMakeLists.txt | ||
| TestConfig.ini | ||
| TestCSSIDSpeed.cpp | ||
| TestCSSInheritedProperty.cpp | ||
| TestCSSPixels.cpp | ||
| TestCSSTokenStream.cpp | ||
| TestFetchInfrastructure.cpp | ||
| TestFetchURL.cpp | ||
| TestHTMLTokenizer.cpp | ||
| TestHTMLTokenizerSwift.swift | ||
| TestLibWebSwiftBindings.swift | ||
| TestMicrosyntax.cpp | ||
| TestMimeSniff.cpp | ||
| TestNumbers.cpp | ||
| TestStrings.cpp | ||
| tokenizer-test.html | ||