-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css] Incorrect "Property is ignored" warning when specifying width on inline replaced elements #56907
[css] Incorrect "Property is ignored" warning when specifying width on inline replaced elements #56907
Comments
While we haven't fixed it, you can set |
That didn't work for me, I set both |
PS: propertyIgnoredDueToDisplay worked fine. For others: I went to File | Preferences in VS Code, searched for propertyIgnoredDueToDisplay and changed it to "ignore" and it applied the change immediately - nice work - thanks guys! |
@octref As mentioned in another comment,
|
@aeschli Since there's no way to correctly detect this rule, can we deprecate and drop it? |
I would suggest fixing the text as suggested in #56907 (comment) |
@aeschli What about |
I'm having the same issue. |
Bump, issue is still present. How long does it take to remove a rule that just isn't correct? If this is something that a developer feels that needs to be identified and messaged, lets fix the existing problem (bad messaging) before we worry about how to identify and message for this correctly. No functionality is better than broken functionality. |
I removed the check. |
Issue Type: Bug
When specifying a CSS width on an inline replaced element (e.g. an <input>) the following warning is shown:
The width isn't ignored for replaced inline elements (such as <input>) as you can see in the following testcase: https://jsfiddle.net/Lczhqytu/
From CSS2 spec regarding width (section 10.2):
The same issue applies to the other properties mentioned in the warning.
VS Code version: Code 1.26.1 (493869e, 2018-08-16T18:38:57.434Z)
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (4)
The text was updated successfully, but these errors were encountered: