Automatic update from web-platform-tests[css-layout-api] Adds ability to specify percentage{Inline,Block}Size.
This allows developers to specify the size which percentages in the
block (wrt child writing mode) direction should be resolved against.
Currently inline percentages still resolve against the available
inline-size.
This adds a "OverrideContainingBlockPercentageResolutionLogicalHeight"
field on layout box, which both the logic for
LayoutBox::ComputePercenatgeLogicalHeight and
LayoutBox::ComputeReplacedLogicalHeight use.
They follow similar logic to LayoutGrid, in that in quirks mode,
percentages are treated as indefinite (doesn't "walk-up" the tree).
Change-Id: I256381687d2eed7693a908074f7f5032d5963e2b
Reviewed-on: https://chromium-review.googlesource.com/1232206
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Aleks Totic <[email protected]>
Cr-Commit-Position: refs/heads/master@{#593208}
--
wpt-commits: 159da2f8ef7c8259c7fc013cbfea2314e2dfdeeb
wpt-pr: 13124
Automatic update from web-platform-tests[css-layout-api] Adds passing of LayoutConstraints#fixedBlockSize.
This passes a fixed block size constraint into the layout function if:
- It has a fixed/percentage/calc block-size.
- The abs-pos constraints will make a fixed block size.
- It is a quirky body/document (which stretches to fit the viewport).
- It has a fixed block-size constraint from a parent layout.
The tests all behave the same way. The layout which we are interested
in testing looks at the received fixedBlockSize, and if correct performs
layout on the only child with a 100x100 fixed size.
Bug: 726125
Change-Id: I4eec86a843d58a791c9df071e16b71bf2f5d80ee
Reviewed-on: https://chromium-review.googlesource.com/1073636
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#563668}
--
wpt-commits: ff4d0553835102b2f68c7bf8dafb205bd3cacb89
wpt-pr: 11260
Automatic update from web-platform-tests[css-layout-api] Adds passing of LayoutConstraints#fixedBlockSize.
This passes a fixed block size constraint into the layout function if:
- It has a fixed/percentage/calc block-size.
- The abs-pos constraints will make a fixed block size.
- It is a quirky body/document (which stretches to fit the viewport).
- It has a fixed block-size constraint from a parent layout.
The tests all behave the same way. The layout which we are interested
in testing looks at the received fixedBlockSize, and if correct performs
layout on the only child with a 100x100 fixed size.
Bug: 726125
Change-Id: I4eec86a843d58a791c9df071e16b71bf2f5d80ee
Reviewed-on: https://chromium-review.googlesource.com/1073636
Reviewed-by: Morten Stenshorne <[email protected]>
Commit-Queue: Ian Kilpatrick <[email protected]>
Cr-Commit-Position: refs/heads/master@{#563668}
--
wpt-commits: ff4d0553835102b2f68c7bf8dafb205bd3cacb89
wpt-pr: 11260
Automatic update from web-platform-tests[css-layout-api] Adds ability to set available sizes on children.
This adds the availableInlineSize, availableBlockSize, to the layout
constriants options dictionary.
This also makes the children "shrink-to-fit" if they are inside a
custom layout pass. Additional logic was needed to *not* "shrink-to-fit"
children during the layout fallback if any occurred, so
LayoutCustomPhaseScope was added to handle this.
The tests that were added test a new BFC with inline children to
see if shrink to fitting works as expected.
Bug: 726125
Change-Id: Ic86d51579b680d871c66040f54e532bc47d79979
Reviewed-on: https://chromium-review.googlesource.com/1069252
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#561602}
--
wpt-commits: 127a32efa15d361e0eb4d0db1cbf5a99d26d72d9
wpt-pr: 11107
Automatic update from web-platform-tests[css-layout-api] Implementation of LayoutConstraints#fixedInlineSize.
This adds the bare bones for the LayoutConstraints object. It just
handles the fixedInlineSize parameter. I expect the information in
this object after the next F2F.
The layout for the test will simply output an autoBlockSize of 100, if
the fixedInlineSize is 100. The tests impose various conditions in
how this can occur, but is certainly not exhaustive.
Change-Id: I6be4a7b77d7b737c778dc2de8b235035b8d3fa22
Bug: 726125
Reviewed-on: https://chromium-review.googlesource.com/981517
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Cr-Commit-Position: refs/heads/master@{#546393}
wpt-commits: c2cd7575a454498f5758b8179506b3b49ad9f074
wpt-pr: 10199
wpt-commits: c2cd7575a454498f5758b8179506b3b49ad9f074
wpt-pr: 10199
Automatic update from web-platform-tests[css-layout-api] Allow developers to position fragments.
This implements the LayoutFragment.inlineOffset and
LayoutFragment.blockOffset attributes.
The tests added simply re-create the reference by setting these two
attributes in different text directions and writing modes.
Change-Id: I1865403ca12e3b174738ee93320eae5ba16ac292
Bug: 726125
Reviewed-on: https://chromium-review.googlesource.com/971832
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#546018}
wpt-commits: 8ec345bcd24282ce94960fc0b11ca057bec393be
wpt-pr: 10161
wpt-commits: 8ec345bcd24282ce94960fc0b11ca057bec393be
wpt-pr: 10161
Automatic update from web-platform-tests[css-layout-api] Allow LayoutChild(ren) to be laid out.
This allows a LayoutChild to have layout performed on it, which will
return a Fragment - with the correct inline and block sizes.
These Fragments cannot be positioned yet, (next patch).
The LayoutChild will be laid out with an available inline/block size of
zero by default, and optionally can accept a fixed-inline/block size,
which it must respect.
Bug: 726125
Change-Id: Ie4386b8f6cd6ccec3f9e52ff332322101058836d
Reviewed-on: https://chromium-review.googlesource.com/962870
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Emil A Eklund <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#545845}
wpt-commits: 7988e1756539bcdf39ec2102b99e0671c44d503c
wpt-pr: 10054
wpt-commits: 7988e1756539bcdf39ec2102b99e0671c44d503c
wpt-pr: 10054
Automatic update from web-platform-tests[css-layout-api] Populate children, and pass into layout() function
This introduces the LayoutChild API surface, (which only has a styleMap
accessor currently).
Each LayoutBox which is a child of a LayoutCustom will hold onto a
LayoutChild object, acting as the script interface for the web
developer.
Bug: 726125
Change-Id: Iecdb01a38c0712dcda063b485c4207bde59f3995
Reviewed-on: https://chromium-review.googlesource.com/933092
Commit-Queue: Ian Kilpatrick <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/master@{#539928}
wpt-commits: 41ab079dfcde76aebbde5660fe3e417447e61f80
wpt-pr: 9680
wpt-commits: 41ab079dfcde76aebbde5660fe3e417447e61f80
wpt-pr: 9680