layout: value of <input type=file> now inherits ‘color’ by default#44496
Conversation
Signed-off-by: Sabb <sarafaabbas@gmail.com>
|
🔨 Triggering try run (#25022792557) for Linux (WPT) |
| border: none; | ||
| background: transparent; | ||
| color: initial; | ||
| color: inherit; |
There was a problem hiding this comment.
color inherits by default. Do you need to override some other declaration?
There was a problem hiding this comment.
It wasn't inheriting the colour until I changed the value.
I don't think there's need to override any other declarations.
There was a problem hiding this comment.
If there is no other declaration to override, then it will inherit anyways, because color is an inherited property.
So if you needed inherit, I wonder if it would make more sense to restrict the selector that sets the other declaration.
There was a problem hiding this comment.
Yes, I just found this up at the beginning of the file;
input, textarea { background: white; border: solid grey 1px; color: black; }
Do you reckon I restrict it here?
|
Test results for linux-wpt from try job (#25022792557): Flaky unexpected result (43)
Stable unexpected results that are known to be intermittent (15)
|
|
✨ Try run (#25022792557) succeeded. |
Signed-off-by: Sabb <sarafaabbas@gmail.com>
|
@Loirooriol check it out now, tests still passing. |
| border: none; | ||
| background: transparent; |
There was a problem hiding this comment.
Are these still needed?
There was a problem hiding this comment.
Honestly not sure, I tend to only want to work on the task alone, don't fancy digging around other parts of the code to not break anything.
Do you think I'd remove it?
There was a problem hiding this comment.
I was mentioning because with the :not([type="file"]), now background: white; border: solid grey 1px; is no longer applied.
Signed-off-by: Sabb <sarafaabbas@gmail.com>
|
@Loirooriol thanks for the heads up, I've pushed the changes |
Made value of now inherit ‘color’ by default
Testing:
./mach test-wpt tests/wpt/mozilla/tests/css/input-file-color-inherit.htmlpasses successfully.Fixes: #44427