That’s not quite right as the absolute element will still work fine but takes its co-ordinates from the viewport (or nearest ancestor with position other than static applied). Of course usually you would need a parent with position:relative applied if you want to use the parent as the positioning context.
For the demo above it will not affect the problem the OP is trying to debug and as mentioned by coothead the code shown is working ok anyway.