mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +00:00
Better support for CSS shorthands when setting the style attribute. This improves some tests in WPT /css/css-align/default-alignment/*shorthand. When setting the style attribute in JS via element.style = '..' or the setAttribute method, shorthand properties were not expanded to longhand properties.
13 lines
515 B
Plaintext
13 lines
515 B
Plaintext
style.cssText = background-color: rgb(255, 255, 0); background-image: none; background-position-x: left 0%; background-position-y: top 0%; background-size: auto auto; background-repeat: repeat repeat; background-attachment: scroll; background-origin: padding-box; background-clip: border-box;
|
|
style.length = 9
|
|
style[] =
|
|
1. background-color
|
|
2. background-image
|
|
3. background-position-x
|
|
4. background-position-y
|
|
5. background-size
|
|
6. background-repeat
|
|
7. background-attachment
|
|
8. background-origin
|
|
9. background-clip
|