1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:08:12 +00:00

LibWeb: Mark more CSS properties as not affecting layout

- background properties
- box-shadow
- cursor
- SVG fill/stroke properties
- image-rendering
- outline properties
- pointer-events
- user-select

This should be basically all of them. I skipped `opacity` and
`transform` since establishing a stacking context feels like a
layout-affecting thing, but I could be very wrong on that!
This commit is contained in:
Sam Atkins 2022-03-18 15:34:26 +00:00 committed by Andreas Kling
parent 39b7fbfeb9
commit ad4f35ff37

View file

@ -11,6 +11,7 @@
] ]
}, },
"background": { "background": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "transparent", "initial": "transparent",
"longhands": [ "longhands": [
@ -25,6 +26,7 @@
] ]
}, },
"background-attachment": { "background-attachment": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "scroll", "initial": "scroll",
"valid-identifiers": [ "valid-identifiers": [
@ -34,6 +36,7 @@
] ]
}, },
"background-clip": { "background-clip": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "border-box", "initial": "border-box",
"valid-identifiers": [ "valid-identifiers": [
@ -54,6 +57,7 @@
] ]
}, },
"background-image": { "background-image": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "none", "initial": "none",
"valid-types": [ "valid-types": [
@ -64,6 +68,7 @@
] ]
}, },
"background-origin": { "background-origin": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "padding-box", "initial": "padding-box",
"valid-identifiers": [ "valid-identifiers": [
@ -73,6 +78,7 @@
] ]
}, },
"background-position": { "background-position": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "0% 0%", "initial": "0% 0%",
"max-values": 4, "max-values": 4,
@ -92,6 +98,7 @@
] ]
}, },
"background-repeat": { "background-repeat": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "repeat", "initial": "repeat",
"max-values": 2, "max-values": 2,
@ -105,6 +112,7 @@
] ]
}, },
"background-size": { "background-size": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "auto", "initial": "auto",
"max-values": 2, "max-values": 2,
@ -474,6 +482,7 @@
] ]
}, },
"box-shadow": { "box-shadow": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "none", "initial": "none",
"valid-identifiers": [ "valid-identifiers": [
@ -540,6 +549,7 @@
] ]
}, },
"cursor": { "cursor": {
"affects-layout": false,
"inherited": true, "inherited": true,
"initial": "auto", "initial": "auto",
"valid-types": [ "valid-types": [
@ -616,6 +626,7 @@
] ]
}, },
"fill": { "fill": {
"affects-layout": false,
"inherited": true, "inherited": true,
"initial": "black", "initial": "black",
"valid-types": [ "valid-types": [
@ -778,6 +789,7 @@
] ]
}, },
"image-rendering": { "image-rendering": {
"affects-layout": false,
"inherited": true, "inherited": true,
"initial": "auto", "initial": "auto",
"valid-identifiers": [ "valid-identifiers": [
@ -1030,6 +1042,7 @@
] ]
}, },
"outline": { "outline": {
"affects-layout": false,
"inherited": false, "inherited": false,
"__comment": "FIXME: Initial value is really `medium invert none` but we don't yet parse the outline shorthand.", "__comment": "FIXME: Initial value is really `medium invert none` but we don't yet parse the outline shorthand.",
"initial": "none", "initial": "none",
@ -1040,6 +1053,7 @@
] ]
}, },
"outline-color": { "outline-color": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "invert", "initial": "invert",
"valid-types": [ "valid-types": [
@ -1050,6 +1064,7 @@
] ]
}, },
"outline-style": { "outline-style": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "none", "initial": "none",
"valid-identifiers": [ "valid-identifiers": [
@ -1179,6 +1194,7 @@
] ]
}, },
"pointer-events": { "pointer-events": {
"affects-layout": false,
"inherited": true, "inherited": true,
"initial": "auto", "initial": "auto",
"valid-identifiers": [ "valid-identifiers": [
@ -1213,6 +1229,7 @@
] ]
}, },
"stroke": { "stroke": {
"affects-layout": false,
"inherited": true, "inherited": true,
"initial": "none", "initial": "none",
"valid-types": [ "valid-types": [
@ -1223,6 +1240,7 @@
] ]
}, },
"stroke-width": { "stroke-width": {
"affects-layout": false,
"inherited": true, "inherited": true,
"initial": "1px", "initial": "1px",
"valid-types": [ "valid-types": [
@ -1352,6 +1370,7 @@
"initial": "none" "initial": "none"
}, },
"user-select": { "user-select": {
"affects-layout": false,
"inherited": false, "inherited": false,
"initial": "auto", "initial": "auto",
"valid-identifiers": [ "valid-identifiers": [