Problem/Motivation
The following issues were reported after using https://jigsaw.w3.org/css-validator/ on a project that uses a Vartheme subtheme:
#admin-menu-search .form-control Value Error : float auto is not a float value : auto .form-required::after Value Error : width Too many values or values are not recognized : calc(1.445em + 1.376rem + 4px) / 2 .form-required::after Value Error : height Too many values or values are not recognized : calc(1.445em + 1.376rem + 4px) / 2 .form-required::after / is not a background-size value : calc(1.445em + 1.376rem + 4px) / 2 calc(1.445em + 1.376rem + 4px) / 2 .form-required::after Value Error : width Too many values or values are not recognized : calc(1.445em + 1.376rem + 4px) / 2 .form-required::after Value Error : height Too many values or values are not recognized : calc(1.445em + 1.376rem + 4px) / 2 .form-required::after / is not a background-size value : calc(1.445em + 1.376rem + 4px) / 2 calc(1.445em + 1.376rem + 4px) / 2
Proposed resolution
Change the factor to 6
background-size: calc(#{$input-height} / 6) calc(#{$input-height} / 6);
width: calc(#{$input-height} / 6);
height: calc(#{$input-height} / 6);
User interface changes
After the Fix

API changes
- None
Data model changes
- None
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | Log-in-dev-varbase9c1-after--W3C-CSS-validation-e1.png | 6.12 KB | rajab natshah |
| #9 | Log-in-dev-varbase9c1-after--W3C-CSS-validation.png | 7.34 KB | rajab natshah |
Issue fork vartheme_bs4-3216704
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mhawwari commentedComment #3
mhawwari commentedComment #5
mhawwari commentedComment #6
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahHaving a regression issue on after the fix for the W3C CSS validation
They are a bit bigger.
Comment #10
rajab natshahChange the factor to 6
After the Fix

Comment #11
rajab natshahThis fix should be reported back to Bootstrap Barrio base theme
Comment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshah