for some reason paint-order is not working on chrome but https://caniuse.com/?search=paint-order

it says it is supported on https://caniuse.com/?search=paint-order but it's not working on text
27 Replies
Mannix
Mannix•16mo ago
it works on mdn's example
Aozen
Aozen•16mo ago
so for me it works on firefox but not on google chrome so the code goes like this
text-align: center;
text-transform: uppercase;
font-family: sheironRodina, sans-serif, arial;
font-size: 160px;

color: orange;
-webkit-text-stroke-width: 14px;
-webkit-text-stroke-color: #fff;
paint-order: stroke fill;
text-align: center;
text-transform: uppercase;
font-family: sheironRodina, sans-serif, arial;
font-size: 160px;

color: orange;
-webkit-text-stroke-width: 14px;
-webkit-text-stroke-color: #fff;
paint-order: stroke fill;
Aozen
Aozen•16mo ago
on firefox it goes 1 look and on google another
Aozen
Aozen•16mo ago
i am not doing anything fancy just 3 lines and paint-order is not working on google for me
Mannix
Mannix•16mo ago
paint-order - CSS: Cascading Style Sheets | MDN
The paint-order CSS property lets you control the order in which the fill and stroke (and painting markers) of text content and shapes are drawn.
Mannix
Mannix•16mo ago
does the example works for you in chrome?
Aozen
Aozen•16mo ago
u mean the result/ ?
Mannix
Mannix•16mo ago
yeah
Aozen
Aozen•16mo ago
well it shows same thing but it could be the default i dunno cant edit the code
Mannix
Mannix•16mo ago
that is what i see
Aozen
Aozen•16mo ago
does it have to be an svg?
Noobtacular
Noobtacular•16mo ago
Have you tried moving the paint-order property up above the stroke and fill lines?
Mannix
Mannix•16mo ago
i mean fill and stroke properties are for svg's aren't they?
Aozen
Aozen•16mo ago
it was working on firefox for text as i showed u above this was not on svg
Mannix
Mannix•16mo ago
i had a feeling you are not using svg
Aozen
Aozen•16mo ago
well what's the issue if i don't ? like why would firefox not mind but google breaks
Mannix
Mannix•16mo ago
different browsers different engines they do what they want to do honestly this is the first time i learned about this property 🙂
Aozen
Aozen•16mo ago
lol XD well i need it to work somehow issue is i technically found a way to make it work but not on chrome which is needed so i think i need to make an svg now and see if same properties work
Aozen
Aozen•16mo ago
is there a way to make the height responsive also what is the x and y position based on here? parent container or other?
Noobtacular
Noobtacular•16mo ago
Well a 14px stroke width will just about do what you are looking at. It will almost entirely overwrite everything.
Aozen
Aozen•16mo ago
yes but not when i use the property i posted it should reorder how paint works
Mannix
Mannix•16mo ago
you don't have to specify width and height on svg
Aozen
Aozen•16mo ago
if i dont put height and width it is doingthis
Noobtacular
Noobtacular•16mo ago
He isn't doing SVG.
Aozen
Aozen•16mo ago
right now i am doing svg ( what do you mean ) in the example he was using svg
Noobtacular
Noobtacular•16mo ago
Try -webkit-text-stroke-width: 4px; instead of 14px Why you using text properties like text-align: center; then? Well I gotta run. Good luck.
Aozen
Aozen•16mo ago
the whole issue is the stoke should take from around the text not from within it so that is why i used paint property which makes it do as i want it anw good luck