[webkit-dev] How to treat CSS Fixed elements as Absolute ones?
Kamil Blank
caceel at gmail.com
Thu Jan 20 12:24:29 PST 2011
Dear All,
Few months ago I've sent to webkit-help question regarding CSS Fixed
elements and treating them as Absolute ones. Unfortunately I haven't
received any reply. As I'm still interested in any tips I'm asking this
question again. Below you can find my original mail.
Regards,
Kamil Blank
---------- Forwarded message ----------
From: Kamil Blank <caceel at gmail.com>
Date: Sat, Sep 18, 2010 at 8:09 PM
Subject: How to treat CSS Fixed elements as Absolute ones?
To: webkit-help at lists.webkit.org
Dear All,
I would like to change the CSS Fixed elements way of working so that
they are treated in the same way as Absolute elements. Could you
please give me some advices on how I can do this?
My initial idea was to divide the task into 2 steps:
1) Calculate new position of Fixed elements, so they'll be relative to
page and not to the viewport;
2) Treat fixed elements as absolute ones.
I think the second step could be resolve by doing some small amendment
in WebCore::RenderStyle by changing FixedPosition meaning into
AbsolutePosition.
However, I am concerned about the first part – could you please advise
where could I insert my changes, i.e. where the fixed elements
relative to the viewport are calculated?
Can you think of any alternative solution of that issue? I will highly
appreciate any hints.
Thanks in advance.
Kamil Blank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110120/908598e8/attachment.html>
More information about the webkit-dev
mailing list