WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
71908
CSS Exclusions: implement the layout algorithm
https://bugs.webkit.org/show_bug.cgi?id=71908
Summary
CSS Exclusions: implement the layout algorithm
Alexandru Chiculita
Reported
2011-11-09 06:59:48 PST
Implement the layout algorithm described in the implementation note of the exclusions spec:
http://dev.w3.org/csswg/css3-exclusions/#exclusions-implementation-note
This should be the master bug of the layout implementation: First pass: - Do a totally normal layout that doesn't take into account any wrap properties Second step: - Second step runs only if there were exclusions detected in the first step 1. Create a list of exclusions in the current wrapping context 2. Sort the list of exclusions using the exclusion order described at
http://dev.w3.org/csswg/css3-exclusions/#exclusions-order
3. Take the exclusions in reverse (ie. starting from the exclusion that is not affected by anything else). For each exclusion do the following steps: 3.1. Do the layout of the exclusion, keeping the exclusion position and size unmodified. 3.2. After the layout of the exclusion is finished, add its shape-outside to the wrapping context. 3.3. Take the following exclusion 4. Finish the layout of the block without changing the layout of the descendant exclusions. Notes: 1. Floats will be affected by exclusions as if they were a big character. That means, the layout will try to position floats without overlapping them with exclusions. 2. Inline-blocks will also be treated as a big character. 3. Elements with "wrap-through: none" will define their own wrapping context, so they will not be affected by the parent's wrapping context and will run their own layout passes.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2011-11-09 09:25:48 PST
<
rdar://problem/10419708
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug