mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02: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.
11 lines
476 B
Plaintext
11 lines
476 B
Plaintext
Harness status: OK
|
|
|
|
Found 5 tests
|
|
|
|
2 Pass
|
|
3 Fail
|
|
Pass Single value flex with CSS-wide keyword should serialize correctly.
|
|
Fail Single value flex with non-CSS-wide value should serialize correctly.
|
|
Pass Multiple values flex with CSS-wide keyword should serialize correctly.
|
|
Fail Multiple values flex with CSS-wide keywords and non-CSS-wide value should serialize correctly.
|
|
Fail Multiple values flex with CSS-wide and two non-CSS-wide-keyword values should serialize correctly. |